X-Git-Url: https://perl5.git.perl.org/perl5.git/blobdiff_plain/2484dfd45804d90a4c06fd52415df7023397d17d..fd909433c7437296:/t/comp/parser.t diff --git a/t/comp/parser.t b/t/comp/parser.t index 05c8d65..65315bc 100644 --- a/t/comp/parser.t +++ b/t/comp/parser.t @@ -3,7 +3,7 @@ # Checks if the parser behaves correctly in edge cases # (including weird syntax errors) -print "1..117\n"; +print "1..118\n"; sub failed { my ($got, $expected, $name) = @_; @@ -333,6 +333,11 @@ like($@, qr/BEGIN failed--compilation aborted/, 'BEGIN 7' ); like($@, qr/Identifier too long/, "too long id ticket case"); } +{ + eval qq[ {sub zlonk} ]; + is($@, '', 'sub declaration followed by a closing curly'); +} + # Add new tests HERE: # More awkward tests for #line. Keep these at the end, as they will screw