From 6876ecd36eacdc5dbcb193d9caea5a56fa8e907b Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Thu, 26 Dec 2002 22:21:23 +0000 Subject: [PATCH] (%expect with reduce conflicts): New test. --- tests/conflicts.at | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) 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 -- 2.47.2