From: Rafael Garcia-Suarez Date: Tue, 30 Dec 2003 12:54:02 +0000 (+0000) Subject: Add a regression test for bug #24762 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=1c03aa9b6a4a4ec2b3bf09d02bd65223657089cf;p=p5sagit%2Fp5-mst-13.2.git Add a regression test for bug #24762 p4raw-id: //depot/perl@22003 --- diff --git a/t/comp/parser.t b/t/comp/parser.t index c68f7ab..730f187 100644 --- a/t/comp/parser.t +++ b/t/comp/parser.t @@ -9,7 +9,7 @@ BEGIN { } require "./test.pl"; -plan( tests => 41 ); +plan( tests => 42 ); eval '%@x=0;'; like( $@, qr/^Can't modify hash dereference in repeat \(x\)/, '%@x=0' ); @@ -135,3 +135,9 @@ EOF '-F calls the F function' ); } + +# Bug #24762 +{ + eval q{ *foo{CODE} ? 1 : 0 }; + is( $@, '', "glob subscript in conditional" ); +}