* tests/regression.at (Mixing %token styles): New test.

This commit is contained in:
Akim Demaille
2001-11-02 14:15:48 +00:00
parent 037ca2f14c
commit cd5aafcf8c
2 changed files with 27 additions and 0 deletions

View File

@@ -1,3 +1,7 @@
2001-11-02 Akim Demaille <akim@epita.fr>
* tests/regression.at (Mixing %token styles): New test.
2001-11-02 Akim Demaille <akim@epita.fr>
* src/reader.c (parse_thong_decl): Formatting changes.

View File

@@ -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. ##
## ---------------------- ##