mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-15 23:33:03 +00:00
* src/output.c (header_output): Don't forget to export YYLTYPE and
yylloc. * tests/headers.at (export YYLTYPE): New, make sure it does. * tests/regression.at (%union and --defines, Invalid CPP headers): Move to... * tests/headers.at: here.
This commit is contained in:
@@ -478,28 +478,6 @@ AT_CLEANUP
|
||||
|
||||
|
||||
|
||||
## ---------------------- ##
|
||||
## %union and --defines. ##
|
||||
## ---------------------- ##
|
||||
|
||||
|
||||
AT_SETUP([%union and --defines])
|
||||
|
||||
AT_DATA([input.y],
|
||||
[%union
|
||||
{
|
||||
int integer;
|
||||
char *string ;
|
||||
}
|
||||
%%
|
||||
exp: {};
|
||||
])
|
||||
|
||||
AT_CHECK([bison --defines input.y])
|
||||
|
||||
AT_CLEANUP
|
||||
|
||||
|
||||
## ----------------- ##
|
||||
## Invalid input 1. ##
|
||||
## ----------------- ##
|
||||
@@ -561,37 +539,6 @@ AT_CLEANUP
|
||||
|
||||
|
||||
|
||||
## --------------------- ##
|
||||
## Invalid CPP headers. ##
|
||||
## --------------------- ##
|
||||
|
||||
# AT_TEST_CPP_GUARD_H([INPUT-FILE-BASE)
|
||||
# -------------------------------------
|
||||
m4_define([AT_TEST_CPP_GUARD_H],
|
||||
[AT_SETUP([Invalid CPP guards: $1])
|
||||
|
||||
# Possibly create inner directories.
|
||||
dirname=`AS_DIRNAME([$1])`
|
||||
AS_MKDIR_P([$dirname])
|
||||
|
||||
AT_DATA([$1.y],
|
||||
[%%
|
||||
dummy:
|
||||
])
|
||||
|
||||
AT_CHECK([bison --defines=$1.h $1.y])
|
||||
|
||||
# CPP should be happy with it.
|
||||
AT_CHECK([$CC -E $1.h], 0, [ignore])
|
||||
|
||||
AT_CLEANUP
|
||||
])
|
||||
|
||||
AT_TEST_CPP_GUARD_H([input/input])
|
||||
AT_TEST_CPP_GUARD_H([9foo])
|
||||
|
||||
|
||||
|
||||
## -------------- ##
|
||||
## Web2c Report. ##
|
||||
## -------------- ##
|
||||
|
||||
Reference in New Issue
Block a user