From: Marc Autret Date: Tue, 18 Sep 2001 15:18:26 +0000 (+0000) Subject: * tests/regression.at: New test (comment in %union). X-Git-Tag: BISON-1_29a~11 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/47cef7a2fff61cbace2d31192db69891b38d0aec * tests/regression.at: New test (comment in %union). --- diff --git a/ChangeLog b/ChangeLog index 69d1d588..c81b6516 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2001-09-18 Marc Autret + + * tests/regression.at: New test (comment in %union). + 2001-09-18 Marc Autret * src/reader.c (parse_union_decl): Do not output '/'. Let copy_comment diff --git a/tests/regression.at b/tests/regression.at index e12e4fdd..619a1dcd 100644 --- a/tests/regression.at +++ b/tests/regression.at @@ -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.*])