X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/ea9a35c605c075c79da41bfeaaaa07b076bafc01..297e263a0050959e0fd139ad66e71383fc9ac4db:/tests/regression.at diff --git a/tests/regression.at b/tests/regression.at index bc129b7c..b23cbcfd 100644 --- a/tests/regression.at +++ b/tests/regression.at @@ -41,7 +41,7 @@ program: 'x'; AT_BISON_OPTION_POPDEFS AT_BISON_CHECK([-o input.c input.y]) -AT_COMPILE([input.o], [-c input.c]) +AT_COMPILE([input.o]) AT_COMPILE([input.o], [-DYYDEBUG -c input.c]) AT_CLEANUP @@ -71,7 +71,7 @@ program: { $$ = ""; }; AT_BISON_OPTION_POPDEFS AT_BISON_CHECK([-o input.c input.y]) -AT_COMPILE([input.o], [-c input.c]) +AT_COMPILE([input.o]) AT_CLEANUP @@ -111,7 +111,7 @@ exp: MY_TOKEN; AT_BISON_OPTION_POPDEFS AT_BISON_CHECK([-y -o input.c input.y]) -AT_COMPILE([input.o], [-c input.c]) +AT_COMPILE([input.o]) AT_CLEANUP @@ -156,7 +156,7 @@ exp: MY_TOKEN; AT_BISON_OPTION_POPDEFS AT_BISON_CHECK([-o input.c input.y]) -AT_COMPILE([input.o], [-c input.c]) +AT_COMPILE([input.o]) AT_CLEANUP @@ -527,7 +527,7 @@ exp: AT_BISON_OPTION_POPDEFS AT_BISON_CHECK([-o input.c input.y]) -AT_COMPILE([input.o], [-c input.c]) +AT_COMPILE([input.o]) AT_CLEANUP @@ -901,6 +901,7 @@ yyparse () } ]) +#include static int yylex (AT_LALR1_CC_IF([int *lval], [void])) [{ @@ -910,8 +911,7 @@ yylex (AT_LALR1_CC_IF([int *lval], [void])) }; static size_t toknum; ]AT_LALR1_CC_IF([*lval = 0; /* Pacify GCC. */])[ - if (! (toknum < sizeof tokens / sizeof *tokens)) - abort (); + assert (toknum < sizeof tokens / sizeof *tokens); return tokens[toknum++]; }] @@ -986,6 +986,7 @@ yyparse () } ])[ +#include static int yylex (]AT_LALR1_CC_IF([int *lval], [void])[) { @@ -995,8 +996,7 @@ yylex (]AT_LALR1_CC_IF([int *lval], [void])[) }; static size_t toknum; ]AT_LALR1_CC_IF([*lval = 0; /* Pacify GCC. */])[ - if (! (toknum < sizeof tokens / sizeof *tokens)) - abort (); + assert (toknum < sizeof tokens / sizeof *tokens); return tokens[toknum++]; }