139 |
]]) |
]]) |
140 |
|
|
141 |
AT_CHECK([bison -o input.c --report=all input.y], 0, [], |
AT_CHECK([bison -o input.c --report=all input.y], 0, [], |
142 |
[input.y: warning: 1 shift/reduce conflict |
[input.y: conflicts: 1 shift/reduce |
143 |
]) |
]) |
144 |
|
|
145 |
# Check the contents of the report. |
# Check the contents of the report. |
146 |
AT_CHECK([cat input.output], [], |
AT_CHECK([cat input.output], [], |
147 |
[[State 5 contains 1 shift/reduce conflict. |
[[State 5 conflicts: 1 shift/reduce |
148 |
|
|
149 |
|
|
150 |
Grammar |
Grammar |
369 |
]]) |
]]) |
370 |
|
|
371 |
AT_CHECK([bison -o input.c --report=all input.y], 0, [], |
AT_CHECK([bison -o input.c --report=all input.y], 0, [], |
372 |
[[input.y: warning: 1 reduce/reduce conflict |
[[input.y: conflicts: 1 reduce/reduce |
373 |
input.y:4.6-8: warning: rule never reduced because of conflicts: id: '0' |
input.y:4.6-8: warning: rule never reduced because of conflicts: id: '0' |
374 |
]]) |
]]) |
375 |
|
|
380 |
4 id: '0' |
4 id: '0' |
381 |
|
|
382 |
|
|
383 |
State 1 contains 1 reduce/reduce conflict. |
State 1 conflicts: 1 reduce/reduce |
384 |
|
|
385 |
|
|
386 |
Grammar |
Grammar |
486 |
]]) |
]]) |
487 |
|
|
488 |
AT_CHECK([bison -o input.c input.y], 1, [], |
AT_CHECK([bison -o input.c input.y], 1, [], |
489 |
[input.y: warning: 1 shift/reduce conflict |
[input.y: conflicts: 1 shift/reduce |
490 |
input.y: expected 0 shift/reduce conflicts |
input.y: expected 0 shift/reduce conflicts |
491 |
]) |
]) |
492 |
AT_CLEANUP |
AT_CLEANUP |
523 |
]]) |
]]) |
524 |
|
|
525 |
AT_CHECK([bison -o input.c input.y], 1, [], |
AT_CHECK([bison -o input.c input.y], 1, [], |
526 |
[input.y: warning: 1 shift/reduce conflict |
[input.y: conflicts: 1 shift/reduce |
527 |
input.y: expected 2 shift/reduce conflicts |
input.y: expected 2 shift/reduce conflicts |
528 |
]) |
]) |
529 |
AT_CLEANUP |
AT_CLEANUP |
543 |
]]) |
]]) |
544 |
|
|
545 |
AT_CHECK([bison -o input.c input.y], 1, [], |
AT_CHECK([bison -o input.c input.y], 1, [], |
546 |
[input.y: warning: 1 reduce/reduce conflict |
[input.y: conflicts: 1 reduce/reduce |
547 |
input.y: expected 0 reduce/reduce conflicts |
input.y: expected 0 reduce/reduce conflicts |
548 |
]) |
]) |
549 |
AT_CLEANUP |
AT_CLEANUP |