]> git.saurik.com Git - bison.git/blobdiff - tests/headers.at
* djgpp/config.bat: Fix that inttypes.h and inttypes_.h map on the same 8.3 alias.
[bison.git] / tests / headers.at
index f7ccb77b9e1cae9af7606db53834928894ca44d1..4168531c46ed9cb76c2521e920a0b1c0c76fdf6d 100644 (file)
@@ -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
 ])
@@ -87,7 +89,7 @@ AT_SETUP([export YYLTYPE])
 AT_DATA_GRAMMAR([input.y],
 [%locations
 
-%name-prefix="my_"
+%name-prefix "my_"
 %{
 #include <stdio.h>
 #include <stdlib.h>