summaryrefslogtreecommitdiff
path: root/t/Hints.pm
diff options
context:
space:
mode:
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;