summaryrefslogtreecommitdiff
path: root/t/comp
diff options
context:
space:
mode:
Diffstat (limited to 't/comp')
-rw-r--r--t/comp/parser.t8
1 files changed, 7 insertions, 1 deletions
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" );
+}