From cd5aafcf8ccf2fb098ea08e933c3b1541cb7545b Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Fri, 2 Nov 2001 14:15:48 +0000 Subject: [PATCH] * tests/regression.at (Mixing %token styles): New test. --- ChangeLog | 4 ++++ tests/regression.at | 23 +++++++++++++++++++++++ 2 files changed, 27 insertions(+) diff --git a/ChangeLog b/ChangeLog index a21a2b1f..85b90b7a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2001-11-02 Akim Demaille + + * tests/regression.at (Mixing %token styles): New test. + 2001-11-02 Akim Demaille * src/reader.c (parse_thong_decl): Formatting changes. diff --git a/tests/regression.at b/tests/regression.at index f37f2c08..b831caf7 100644 --- a/tests/regression.at +++ b/tests/regression.at @@ -44,6 +44,29 @@ AT_CLEANUP([duplicate.*]) +## ---------------------- ## +## Mixing %token styles. ## +## ---------------------- ## + + +AT_SETUP([Mixing %token styles]) + +# Taken from the documentation. +AT_DATA([input.y], +[[%token OR "||" +%token LE 134 "<=" +%left OR "<=" +%% +exp: ; +%% +]]) + +AT_CHECK([bison -v input.y -o input.c], 0, ignore, ignore) + +AT_CLEANUP([input.*]) + + + ## ---------------------- ## ## %union and --defines. ## ## ---------------------- ## -- 2.45.2