mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-12 05:43:03 +00:00
* tests/regression.at (Invalid CPP headers): New.
From Alexander Belopolsky. * src/files.c (compute_header_macro): Map non alnum chars to `_'.
This commit is contained in:
@@ -107,3 +107,25 @@ input.y:3: fatal error: no rules in the input grammar
|
||||
])
|
||||
|
||||
AT_CLEANUP
|
||||
|
||||
|
||||
## --------------------- ##
|
||||
## Invalid CPP headers. ##
|
||||
## --------------------- ##
|
||||
|
||||
AT_SETUP([Invalid CPP headers])
|
||||
|
||||
mkdir input
|
||||
|
||||
AT_DATA([input/input.y],
|
||||
[%%
|
||||
dummy:
|
||||
])
|
||||
|
||||
AT_CHECK([bison --defines input/input.y])
|
||||
|
||||
AT_CHECK([sed 1q input/input.tab.h], 0,
|
||||
[[#ifndef INPUT_INPUT_TAB_H
|
||||
]])
|
||||
|
||||
AT_CLEANUP(input)
|
||||
|
||||
Reference in New Issue
Block a user