/[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.24 by eggert, Sun Dec 29 01:59:13 2002 UTC revision 1.25 by eggert, Mon Jan 13 06:41:28 2003 UTC
# Line 1  Line 1 
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
# Line 485  AT_DATA([input.y], Line 486  AT_DATA([input.y],
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    
# Line 522  AT_DATA([input.y], Line 523  AT_DATA([input.y],
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    
# Line 542  program: a 'a' | a a; Line 543  program: a 'a' | a a;
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

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

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