From 1c03aa9b6a4a4ec2b3bf09d02bd65223657089cf Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Tue, 30 Dec 2003 12:54:02 +0000 Subject: Add a regression test for bug #24762 p4raw-id: //depot/perl@22003 --- t/comp/parser.t | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 't/comp') diff --git a/t/comp/parser.t b/t/comp/parser.t index c68f7ab5aa..730f187cec 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" ); +} -- cgit v1.2.1