Stop relying on stash entries always being upgraded into real GVs.
[p5sagit/namespace-clean.git] / t / 08-const-sub.t
diff --git a/t/08-const-sub.t b/t/08-const-sub.t
new file mode 100644 (file)
index 0000000..1ec65b9
--- /dev/null
@@ -0,0 +1,14 @@
+use strict;
+use warnings;
+
+use Test::More;
+
+use constant CONST => 123;
+use namespace::clean;
+
+my $x = CONST;
+is $x, 123;
+
+ok eval("!defined(&CONST)");
+
+done_testing;