X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/55f48c48314bf63e224f5cbfad7f9c52b6d78df7..a1d1ab50a00a4d28d6ba7b227ddc6628d5734ce3:/tests/conflicts.at?ds=sidebyside diff --git a/tests/conflicts.at b/tests/conflicts.at index 54df0511..a46acc5a 100644 --- a/tests/conflicts.at +++ b/tests/conflicts.at @@ -57,6 +57,7 @@ AT_DATA_GRAMMAR([input.y], #include #include #include +#include #define YYERROR_VERBOSE 1 ]AT_YYERROR_DEFINE[ @@ -67,8 +68,7 @@ static int yylex (void) { static size_t toknum; - if (! (toknum <= strlen (input))) - abort (); + assert (toknum <= strlen (input)); return input[toknum++]; } @@ -491,7 +491,7 @@ reduce-nonassoc: %prec 'a'; %% ]AT_YYERROR_DEFINE[ -]AT_YYLEX_DEFINE([aaa])[ +]AT_YYLEX_DEFINE(["aaa"])[ int main (void)