diff options
-rw-r--r-- | perly.c | 2 | ||||
-rw-r--r-- | t/comp/parser.t | 6 |
2 files changed, 5 insertions, 3 deletions
@@ -522,8 +522,6 @@ Perl_yyparse (pTHX_ int gramtype) } YYDSYMPRINTF ("Error: discarding", yytoken, &parser->yylval); - if (yy_type_tab[yytoken] == toketype_opval) - op_free(parser->yylval.opval); parser->yychar = YYEMPTY; } diff --git a/t/comp/parser.t b/t/comp/parser.t index 27f81dc61a..a5ba93cd2e 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..152\n"; +print "1..153\n"; sub failed { my ($got, $expected, $name) = @_; @@ -443,6 +443,10 @@ is prototype "Hello::_he_said", '_', 'initial tick in sub declaration'; 'literal -> [0] after an array subscript within ""'); } +eval 'no if $] >= 5.17.4 warnings => "deprecated"'; +is 1,1, ' no crash for "no ... syntax error"'; + + # Add new tests HERE (above this line) # bug #74022: Loop on characters in \p{OtherIDContinue} |