tests: add missing includes

* tests/actions.at, tests/c++.at, tests/headers.at,
* tests/regression.at: here.
This commit is contained in:
Akim Demaille
2019-10-10 07:00:11 +02:00
parent 602d562d6f
commit 7d47d51962
4 changed files with 9 additions and 2 deletions

View File

@@ -1309,6 +1309,7 @@ AT_BISON_OPTION_PUSHDEFS([%debug $1])
AT_DATA_GRAMMAR([input.y],
[[%code {
#include <stdio.h> /* printf */
]AT_YYERROR_DECLARE[
]AT_YYLEX_DECLARE[
}
@@ -1480,12 +1481,13 @@ AT_DATA_GRAMMAR([input.y],
}
%{
#include <stdio.h> /* printf. */
]AT_YYERROR_DECLARE[
]AT_YYLEX_DECLARE[
%}
%%
exp: 'a' { fprintf (stdout, "x: %d, y: %d\n", x, y); };
exp: 'a' { printf ("x: %d, y: %d\n", x, y); };
%%
]AT_YYERROR_DEFINE[
]AT_YYLEX_DEFINE(["a"])[