mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-19 09:13:04 +00:00
* tests/calc.at (_AT_DATA_CALC_Y): Also use %union.
In addition, put a comment in there, to replace... * tests/regression.at (%union and C comments): Remove.
This commit is contained in:
@@ -500,29 +500,6 @@ AT_CHECK([bison --defines input.y])
|
||||
AT_CLEANUP
|
||||
|
||||
|
||||
## --------------------------------------- ##
|
||||
## Duplicate '/' in C comments in %union ##
|
||||
## --------------------------------------- ##
|
||||
|
||||
|
||||
AT_SETUP([%union and C comments])
|
||||
|
||||
AT_DATA([input.y],
|
||||
[%union
|
||||
{
|
||||
/* The int. */ int integer;
|
||||
/* The string. */ char *string ;
|
||||
}
|
||||
%%
|
||||
exp: {};
|
||||
])
|
||||
|
||||
AT_CHECK([bison input.y -o input.c])
|
||||
AT_CHECK([fgrep '//*' input.c], [1], [])
|
||||
|
||||
AT_CLEANUP
|
||||
|
||||
|
||||
## ----------------- ##
|
||||
## Invalid input 1. ##
|
||||
## ----------------- ##
|
||||
|
||||
Reference in New Issue
Block a user