X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/5a6755afcb50c29c04d2f605f885e69784d9d6cc..d6b771c345a389742bfcd73ff13dac1d4f016c88:/tests/headers.at diff --git a/tests/headers.at b/tests/headers.at index f7ccb77b..a348d65b 100644 --- a/tests/headers.at +++ b/tests/headers.at @@ -57,17 +57,19 @@ AS_MKDIR_P([$dirname]) AT_DATA_GRAMMAR([$1.y], [%{ -#include "$1.h" +#include <$1.h> +void yyerror (const char *); +int yylex (void); %} %% dummy:; %% -#include "$1.h" +#include <$1.h> ]) AT_CHECK([bison --defines=$1.h --output=y.tab.c $1.y]) -AT_COMPILE([y.tab.o], [-c y.tab.c]) +AT_COMPILE([y.tab.o], [-I. -c y.tab.c]) AT_CLEANUP ])