summaryrefslogtreecommitdiff
path: root/t/Hints.pm
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2014-02-06 22:09:40 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2014-02-06 22:09:40 +0000
commit3621e4956cb037811317b0195d3248108c6658c3 (patch)
tree3b72d0c777a6299cb8e96bfdc856487b7358f605 /t/Hints.pm
downloadModule-Runtime-tarball-master.tar.gz
Module-Runtime-0.014HEADModule-Runtime-0.014master
Diffstat (limited to 't/Hints.pm')
-rw-r--r--t/Hints.pm17
1 files changed, 17 insertions, 0 deletions
diff --git a/t/Hints.pm b/t/Hints.pm
new file mode 100644
index 0000000..7461d49
--- /dev/null
+++ b/t/Hints.pm
@@ -0,0 +1,17 @@
+package t::Hints;
+
+use warnings;
+use strict;
+
+use Test::More;
+
+BEGIN { is $^H{"Module::Runtime/test_a"}, undef; }
+main::test_runtime_hint_hash "Module::Runtime/test_a", undef;
+
+sub import {
+ is $^H{"Module::Runtime/test_a"}, 1;
+ $^H |= 0x20000 if "$]" < 5.009004;
+ $^H{"Module::Runtime/test_b"} = 1;
+}
+
+1;