This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[perl #25824] Segmentation fault with
[perl5.git]
/
t
/
comp
/
parser.t
diff --git
a/t/comp/parser.t
b/t/comp/parser.t
index
730f187
..
e59fec6
100644
(file)
--- a/
t/comp/parser.t
+++ b/
t/comp/parser.t
@@
-9,7
+9,7
@@
BEGIN {
}
require "./test.pl";
}
require "./test.pl";
-plan( tests => 4
2
);
+plan( tests => 4
3
);
eval '%@x=0;';
like( $@, qr/^Can't modify hash dereference in repeat \(x\)/, '%@x=0' );
eval '%@x=0;';
like( $@, qr/^Can't modify hash dereference in repeat \(x\)/, '%@x=0' );
@@
-141,3
+141,9
@@
EOF
eval q{ *foo{CODE} ? 1 : 0 };
is( $@, '', "glob subscript in conditional" );
}
eval q{ *foo{CODE} ? 1 : 0 };
is( $@, '', "glob subscript in conditional" );
}
+
+# Bug #25824
+{
+ eval q{ sub f { @a=@b=@c; {use} } };
+ like( $@, qr/syntax error/, "use without body" );
+}