From: Paul Eggert Date: Thu, 26 Dec 2002 22:21:23 +0000 (+0000) Subject: (%expect with reduce conflicts): New test. X-Git-Tag: BISON-1_875~25 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/6876ecd36eacdc5dbcb193d9caea5a56fa8e907b?hp=76be9271f2bd46510de83d9957d4cfc68d757996 (%expect with reduce conflicts): New test. --- diff --git a/tests/conflicts.at b/tests/conflicts.at index 58838e7e..ec9847aa 100644 --- a/tests/conflicts.at +++ b/tests/conflicts.at @@ -527,3 +527,23 @@ AT_CHECK([bison -o input.c input.y], 1, [], input.y: expected 2 shift/reduce conflicts ]) AT_CLEANUP + + +## ------------------------------ ## +## %expect with reduce conflicts ## +## ------------------------------ ## + +AT_SETUP([%expect with reduce conflicts]) + +AT_DATA([input.y], +[[%expect 0 +%% +program: a 'a' | a a; +a: 'a'; +]]) + +AT_CHECK([bison -o input.c input.y], 1, [], +[input.y: warning: 1 reduce/reduce conflict +input.y: expected 0 reduce/reduce conflicts +]) +AT_CLEANUP