This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Add a regression test for bug #24762
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Tue, 30 Dec 2003 12:54:02 +0000 (12:54 +0000)
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Tue, 30 Dec 2003 12:54:02 +0000 (12:54 +0000)
p4raw-id: //depot/perl@22003

t/comp/parser.t

index c68f7ab..730f187 100644 (file)
@@ -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" );
+}