X-Git-Url: https://perl5.git.perl.org/perl5.git/blobdiff_plain/9388183fea7d692a0a6ded83ccc01767a8af49cf..500bedb6c28d0918a4bd28632e742d0905ce8519:/t/comp/parser.t diff --git a/t/comp/parser.t b/t/comp/parser.t index 730f187..e59fec6 100644 --- a/t/comp/parser.t +++ b/t/comp/parser.t @@ -9,7 +9,7 @@ BEGIN { } require "./test.pl"; -plan( tests => 42 ); +plan( tests => 43 ); 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" ); } + +# Bug #25824 +{ + eval q{ sub f { @a=@b=@c; {use} } }; + like( $@, qr/syntax error/, "use without body" ); +}