summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/perl/lib/charnames.t
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/usr.bin/perl/lib/charnames.t')
-rw-r--r--gnu/usr.bin/perl/lib/charnames.t8
1 files changed, 7 insertions, 1 deletions
diff --git a/gnu/usr.bin/perl/lib/charnames.t b/gnu/usr.bin/perl/lib/charnames.t
index 34fe56d3dd6..02d685c5299 100644
--- a/gnu/usr.bin/perl/lib/charnames.t
+++ b/gnu/usr.bin/perl/lib/charnames.t
@@ -15,7 +15,7 @@ require File::Spec;
$| = 1;
-print "1..73\n";
+print "1..74\n";
use charnames ':full';
@@ -328,6 +328,12 @@ for (@prgs) {
1 while unlink $alifile;
}
+# [perl #30409] charnames.pm clobbers default variable
+$_ = 'foobar';
+eval "use charnames ':full';";
+print "not " unless $_ eq 'foobar';
+print "ok 74\n";
+
__END__
# unsupported pragma
use charnames ":scoobydoo";