/[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.14 by akim, Tue Jul 30 11:06:50 2002 UTC revision 1.15 by akim, Tue Jul 30 11:09:59 2002 UTC
# Line 142  exp: exp OP exp | NUM; Line 142  exp: exp OP exp | NUM;
142  ]])  ]])
143    
144  AT_CHECK([bison input.y -o input.c --report=all], 0, [],  AT_CHECK([bison input.y -o input.c --report=all], 0, [],
145  [input.y contains 1 shift/reduce conflict.  [input.y: warning: 1 shift/reduce conflict
146  ])  ])
147    
148  # Check the contents of the report.  # Check the contents of the report.
# Line 371  id : '0'; Line 371  id : '0';
371  ]])  ]])
372    
373  AT_CHECK([bison input.y -o input.c --report=all], 0, [],  AT_CHECK([bison input.y -o input.c --report=all], 0, [],
374  [[input.y contains 1 reduce/reduce conflict.  [[input.y: warning: 1 reduce/reduce conflict
375  input.y:4.4-8: warning: rule never reduced because of conflicts: id: '0'  input.y:4.4-8: warning: rule never reduced because of conflicts: id: '0'
376  ]])  ]])
377    
# Line 483  exp: exp OP exp | NUM; Line 483  exp: exp OP exp | NUM;
483  ]])  ]])
484    
485  AT_CHECK([bison input.y -o input.c], 1, [],  AT_CHECK([bison input.y -o input.c], 1, [],
486  [input.y contains 1 shift/reduce conflict.  [input.y: warning: 1 shift/reduce conflict
487  expected 0 shift/reduce conflicts  input.y: expected 0 shift/reduce conflicts
488  ])  ])
489  AT_CLEANUP  AT_CLEANUP
490    
# Line 520  exp: exp OP exp | NUM; Line 520  exp: exp OP exp | NUM;
520  ]])  ]])
521    
522  AT_CHECK([bison input.y -o input.c], 1, [],  AT_CHECK([bison input.y -o input.c], 1, [],
523  [input.y contains 1 shift/reduce conflict.  [input.y: warning: 1 shift/reduce conflict
524  expected 2 shift/reduce conflicts  input.y: expected 2 shift/reduce conflicts
525  ])  ])
526  AT_CLEANUP  AT_CLEANUP

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15

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