X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/6100a9aa2e68e992396e3e1da954921dc1fee801..f938a7e7b80eacb7c66777a20b81db87b67f3bd6:/tests/glr-regression.at diff --git a/tests/glr-regression.at b/tests/glr-regression.at index e6534624..4ac981c0 100644 --- a/tests/glr-regression.at +++ b/tests/glr-regression.at @@ -34,7 +34,7 @@ AT_DATA_GRAMMAR([glr-regr1.y], #define YYSTYPE int static YYSTYPE exprMerge (YYSTYPE x0, YYSTYPE x1); int yylex (void); -int yyerror (char const *msg); +void yyerror (char const *msg); %} @@ -70,7 +70,7 @@ main (void) return yyparse (); } -int +void yyerror (char const *msg) { fprintf (stderr, "%s\n", msg); @@ -184,7 +184,7 @@ yylex (void) break; } if (fscanf (yyin, "%49s", buf) != 1) - abort (); + return 0; if (sizeof buf - 1 <= strlen (buf)) abort (); s = (char *) malloc (strlen (buf) + 1);