* tests/headers.at (AT_TEST_CPP_GUARD_H): Use #include <...> rather

than #include "...", and compile with -I'.'.
This commit is contained in:
Paul Eggert
2006-02-06 23:49:52 +00:00
parent 927b425baa
commit fe6c2fdef2
2 changed files with 13 additions and 3 deletions

View File

@@ -57,17 +57,17 @@ AS_MKDIR_P([$dirname])
AT_DATA_GRAMMAR([$1.y],
[%{
#include "$1.h"
#include <$1.h>
%}
%%
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
])