* 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

@@ -1,3 +1,7 @@
2001-09-18 Marc Autret <autret_m@epita.fr>
* tests/regression.at: New test (comment in %union).
2001-09-18 Marc Autret <autret_m@epita.fr>
* src/reader.c (parse_union_decl): Do not output '/'. Let copy_comment

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.*])