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

Diff of /bison/tests/regression.at

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

revision 1.23 by akim, Sat Dec 22 14:58:53 2001 UTC revision 1.24 by akim, Thu Dec 27 18:06:06 2001 UTC
# Line 25  AT_BANNER([[Regression tests.]]) Line 25  AT_BANNER([[Regression tests.]])
25    
26  AT_SETUP([Duplicate string])  AT_SETUP([Duplicate string])
27    
28  AT_DATA([duplicate.y],  AT_DATA([input.y],
29  [[/* `Bison -v' used to dump core when two tokens are defined with the same  [[/* `Bison -v' used to dump core when two tokens are defined with the same
30     string, as LE and GE below. */     string, as LE and GE below. */
31    
# Line 38  exp: '(' exp ')' | NUM ; Line 38  exp: '(' exp ')' | NUM ;
38  %%  %%
39  ]])  ]])
40    
41  AT_CHECK([bison -v duplicate.y -o duplicate.c], 0, ignore, ignore)  AT_CHECK([bison -v input.y -o input.c], 0, ignore, ignore)
42    
43  AT_CLEANUP  AT_CLEANUP
44    
# Line 478  AT_CLEANUP Line 478  AT_CLEANUP
478    
479  AT_SETUP([%union and --defines])  AT_SETUP([%union and --defines])
480    
481  AT_DATA([union.y],  AT_DATA([input.y],
482  [%union  [%union
483  {  {
484    int   integer;    int   integer;
# Line 488  AT_DATA([union.y], Line 488  AT_DATA([union.y],
488  exp: {};  exp: {};
489  ])  ])
490    
491  AT_CHECK([bison --defines union.y])  AT_CHECK([bison --defines input.y])
492    
493  AT_CLEANUP  AT_CLEANUP
494    
# Line 500  AT_CLEANUP Line 500  AT_CLEANUP
500    
501  AT_SETUP([%union and C comments])  AT_SETUP([%union and C comments])
502    
503  AT_DATA([union-comment.y],  AT_DATA([input.y],
504  [%union  [%union
505  {  {
506    /* The int.  */       int   integer;    /* The int.  */       int   integer;
# Line 510  AT_DATA([union-comment.y], Line 510  AT_DATA([union-comment.y],
510  exp: {};  exp: {};
511  ])  ])
512    
513  AT_CHECK([bison union-comment.y])  AT_CHECK([bison input.y -o input.c])
514  AT_CHECK([fgrep '//*' union-comment.tab.c], [1], [])  AT_CHECK([fgrep '//*' input.c], [1], [])
515    
516  AT_CLEANUP  AT_CLEANUP
517    

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