* tests/regression.at: New test (comment in %union).

This commit is contained in:
Marc Autret
2001-09-18 15:18:26 +00:00
parent 7972022dac
commit 47cef7a2ff
2 changed files with 27 additions and 0 deletions

View File

@@ -64,3 +64,26 @@ exp: {};
AT_CHECK([bison --defines union.y])
AT_CLEANUP([union.*])
## --------------------------------------- ##
## Duplicate '/' in C comments in %union ##
## --------------------------------------- ##
AT_SETUP([%union and C comments])
AT_DATA([union-comment.y],
[%union
{
/* The int. */ int integer;
/* The string. */ char *string ;
}
%%
exp: {};
])
AT_CHECK([bison union-comment.y])
AT_CHECK([fgrep '//*' union-comment.tab.c], [1], [])
AT_CLEANUP([union-comment.*])