mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-10 12:53:03 +00:00
* tests/regression.at: New test (comment in %union).
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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.*])
|
||||
|
||||
Reference in New Issue
Block a user