(%expect with reduce conflicts): New test.

This commit is contained in:
Paul Eggert
2002-12-26 22:21:23 +00:00
parent 76be9271f2
commit 6876ecd36e

View File

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