projects
/
p5sagit/namespace-clean.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
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
+++ b/
t/08-const-sub.t
@@ -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;