* 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:
Akim Demaille
2001-12-29 14:18:08 +00:00
parent e7b8bef1b1
commit 213e640e1e
3 changed files with 17 additions and 26 deletions

View File

@@ -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. ##
## ----------------- ##