/[bison]/bison/tests/conflicts.at
ViewVC logotype

Diff of /bison/tests/conflicts.at

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.23 by eggert, Thu Dec 26 22:21:23 2002 UTC revision 1.24 by eggert, Sun Dec 29 01:59:13 2002 UTC
# Line 139  exp: exp OP exp | NUM; Line 139  exp: exp OP exp | NUM;
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
# Line 369  id : '0'; Line 369  id : '0';
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    
# Line 380  AT_CHECK([cat input.output], [], Line 380  AT_CHECK([cat input.output], [],
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
# Line 486  exp: exp OP exp | NUM; Line 486  exp: exp OP exp | NUM;
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
# Line 523  exp: exp OP exp | NUM; Line 523  exp: exp OP exp | NUM;
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
# Line 543  a: 'a'; Line 543  a: 'a';
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

Legend:
Removed from v.1.23  
changed lines
  Added in v.1.24

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26