64 |
AT_CHECK([bison --defines union.y]) |
AT_CHECK([bison --defines union.y]) |
65 |
|
|
66 |
AT_CLEANUP([union.*]) |
AT_CLEANUP([union.*]) |
67 |
|
|
68 |
|
|
69 |
|
## --------------------------------------- ## |
70 |
|
## Duplicate '/' in C comments in %union ## |
71 |
|
## --------------------------------------- ## |
72 |
|
|
73 |
|
|
74 |
|
AT_SETUP([%union and C comments]) |
75 |
|
|
76 |
|
AT_DATA([union-comment.y], |
77 |
|
[%union |
78 |
|
{ |
79 |
|
/* The int. */ int integer; |
80 |
|
/* The string. */ char *string ; |
81 |
|
} |
82 |
|
%% |
83 |
|
exp: {}; |
84 |
|
]) |
85 |
|
|
86 |
|
AT_CHECK([bison union-comment.y]) |
87 |
|
AT_CHECK([fgrep '//*' union-comment.tab.c], [1], []) |
88 |
|
|
89 |
|
AT_CLEANUP([union-comment.*]) |