1 |
# Exercising Bison on conflicts. -*- Autotest -*- |
# Exercising Bison on conflicts. -*- Autotest -*- |
2 |
# Copyright (C) 2002 Free Software Foundation, Inc. |
|
3 |
|
# Copyright (C) 2002, 2003 Free Software Foundation, Inc. |
4 |
|
|
5 |
# This program is free software; you can redistribute it and/or modify |
# This program is free software; you can redistribute it and/or modify |
6 |
# it under the terms of the GNU General Public License as published by |
# it under the terms of the GNU General Public License as published by |
486 |
exp: exp OP exp | NUM; |
exp: exp OP exp | NUM; |
487 |
]]) |
]]) |
488 |
|
|
489 |
AT_CHECK([bison -o input.c input.y], 1, [], |
AT_CHECK([bison -o input.c input.y], 0, [], |
490 |
[input.y: conflicts: 1 shift/reduce |
[input.y: conflicts: 1 shift/reduce |
491 |
input.y: expected 0 shift/reduce conflicts |
input.y: warning: expected 0 shift/reduce conflicts |
492 |
]) |
]) |
493 |
AT_CLEANUP |
AT_CLEANUP |
494 |
|
|
523 |
exp: exp OP exp | NUM; |
exp: exp OP exp | NUM; |
524 |
]]) |
]]) |
525 |
|
|
526 |
AT_CHECK([bison -o input.c input.y], 1, [], |
AT_CHECK([bison -o input.c input.y], 0, [], |
527 |
[input.y: conflicts: 1 shift/reduce |
[input.y: conflicts: 1 shift/reduce |
528 |
input.y: expected 2 shift/reduce conflicts |
input.y: warning: expected 2 shift/reduce conflicts |
529 |
]) |
]) |
530 |
AT_CLEANUP |
AT_CLEANUP |
531 |
|
|
543 |
a: 'a'; |
a: 'a'; |
544 |
]]) |
]]) |
545 |
|
|
546 |
AT_CHECK([bison -o input.c input.y], 1, [], |
AT_CHECK([bison -o input.c input.y], 0, [], |
547 |
[input.y: conflicts: 1 reduce/reduce |
[input.y: conflicts: 1 reduce/reduce |
548 |
input.y: expected 0 reduce/reduce conflicts |
input.y: warning: expected 0 reduce/reduce conflicts |
549 |
]) |
]) |
550 |
AT_CLEANUP |
AT_CLEANUP |