mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
* tests/regression.at (Mixing %token styles): New test.
This commit is contained in:
@@ -44,6 +44,29 @@ AT_CLEANUP([duplicate.*])
|
||||
|
||||
|
||||
|
||||
## ---------------------- ##
|
||||
## Mixing %token styles. ##
|
||||
## ---------------------- ##
|
||||
|
||||
|
||||
AT_SETUP([Mixing %token styles])
|
||||
|
||||
# Taken from the documentation.
|
||||
AT_DATA([input.y],
|
||||
[[%token <operator> OR "||"
|
||||
%token <operator> LE 134 "<="
|
||||
%left OR "<="
|
||||
%%
|
||||
exp: ;
|
||||
%%
|
||||
]])
|
||||
|
||||
AT_CHECK([bison -v input.y -o input.c], 0, ignore, ignore)
|
||||
|
||||
AT_CLEANUP([input.*])
|
||||
|
||||
|
||||
|
||||
## ---------------------- ##
|
||||
## %union and --defines. ##
|
||||
## ---------------------- ##
|
||||
|
||||
Reference in New Issue
Block a user