summaryrefslogtreecommitdiff
path: root/t/lib/CompileTime.pm
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2014-09-21 17:50:39 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2014-09-21 17:50:39 +0000
commit37bd679ad9ac185930fa8fea7cd11b27587ae478 (patch)
tree5e066618802a14b7c8b3e7ecc7e234c669c9d10b /t/lib/CompileTime.pm
downloadPackage-Stash-tarball-master.tar.gz
Diffstat (limited to 't/lib/CompileTime.pm')
-rw-r--r--t/lib/CompileTime.pm15
1 files changed, 15 insertions, 0 deletions
diff --git a/t/lib/CompileTime.pm b/t/lib/CompileTime.pm
new file mode 100644
index 0000000..925bc18
--- /dev/null
+++ b/t/lib/CompileTime.pm
@@ -0,0 +1,15 @@
+package CompileTime;
+use strict;
+use warnings;
+
+use Package::Stash;
+
+our $foo = 23;
+
+BEGIN {
+ my $stash = Package::Stash->new(__PACKAGE__);
+ $stash->add_symbol('$bar', $foo);
+ $stash->add_symbol('$baz', $stash->get_symbol('$foo'));
+}
+
+1;