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 |
|
|
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 |
|
|
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; |
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 |
|
|
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; |
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 |
|
|