This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
make gv_fullname() etc include a literal '^' for *^FOO style names
[perl5.git] / t / op / gv.t
index 5b1237a..851f6b1 100755 (executable)
--- a/t/op/gv.t
+++ b/t/op/gv.t
@@ -11,7 +11,7 @@ BEGIN {
 
 use warnings;
 
-print "1..52\n";
+print "1..53\n";
 
 # type coersion on assignment
 $foo = 'foo';
@@ -242,6 +242,9 @@ print $j[0] == 1 ? "ok 43\n" : "not ok 43\n";
     print $x || "not ok 52\n";
 }
 
+# stringified typeglob should escape leading control char
+print *^A eq "*main::^A" ? "ok 53\n" : "not ok 53\n";
+
 __END__
 ok 44
 ok 48