projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a8ef040
)
Add a regression test for bug #24762
author
Rafael Garcia-Suarez
<rgarciasuarez@gmail.com>
Tue, 30 Dec 2003 12:54:02 +0000
(12:54 +0000)
committer
Rafael 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
patch
|
blob
|
history
diff --git
a/t/comp/parser.t
b/t/comp/parser.t
index
c68f7ab
..
730f187
100644
(file)
--- a/
t/comp/parser.t
+++ b/
t/comp/parser.t
@@
-9,7
+9,7
@@
BEGIN {
}
require "./test.pl";
-plan( tests => 4
1
);
+plan( tests => 4
2
);
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" );
+}