diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 1999-12-18 01:35:50 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1999-12-18 01:35:50 +0000 |
commit | 0505442f3c585b66999f71b9bb23ab4d01c6531a (patch) | |
tree | 3f76bdb360e3a56c0a103543cb21055de4b4ec29 /t | |
parent | 79d01fbf58287276b77349e580651d9897f9b25c (diff) | |
download | perl-0505442f3c585b66999f71b9bb23ab4d01c6531a.tar.gz |
fix from Larry for parsing C<{ 0x1 => 'foo'}> as an
anon hash rather than a block; test case for the same
p4raw-id: //depot/perl@4697
Diffstat (limited to 't')
-rwxr-xr-x | t/comp/term.t | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/t/comp/term.t b/t/comp/term.t index eb9968003e..f079eef58b 100755 --- a/t/comp/term.t +++ b/t/comp/term.t @@ -1,10 +1,8 @@ #!./perl -# $RCSfile: term.t,v $$Revision: 4.1 $$Date: 92/08/07 18:27:24 $ - # tests that aren't important enough for base.term -print "1..22\n"; +print "1..23\n"; $x = "\\n"; print "#1\t:$x: eq " . ':\n:' . "\n"; @@ -68,3 +66,7 @@ if (ref($a) eq 'HASH') {print "ok 21\n";} else {print "not ok 21\n";} $a = "+{ \$a=>'foo'}"; $a = eval $a; if (ref($a) eq 'HASH') {print "ok 22\n";} else {print "not ok 22\n";} + +$a = "{ 0x01 => 'foo'}->{0x01}"; +$a = eval $a; +if ($a eq 'foo') {print "ok 23\n";} else {print "not ok 23\n";} |