diff options
author | Joel E. Denny <joeldenny@joeldenny.org> | 2011-08-21 14:45:03 -0400 |
---|---|---|
committer | Joel E. Denny <joeldenny@joeldenny.org> | 2011-08-21 17:03:26 -0400 |
commit | 765e1bd4fc08bdee636b8aeab12908d8895ece67 (patch) | |
tree | e0ee18b87629d099b0b74dba06ad9eeea00d02dd /tests | |
parent | e9690142325711b320ef444768fdd40a087d02f7 (diff) | |
download | bison-765e1bd4fc08bdee636b8aeab12908d8895ece67.tar.gz |
tests: fix empty unions.
Empty unions are not accepted by the ISO C99 grammar or by at
least some versions of Sun Studio. Reported by Wolfgang S. Kechel
at
<http://lists.gnu.org/archive/html/bug-bison/2011-08/msg00003.html>.
* NEWS (2.5.1): Document fix.
* THANKS (Wolfgang S. Kechel): Add.
* tests/existing.at (GNU Cim Grammar)
(GNU pic (Groff 1.18.1) Grammar.): Remove empty %union.
(cherry picked from commit 7451638148706f6317975db418cc78e488f420aa)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/existing.at | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/existing.at b/tests/existing.at index 71b01f33..b972a1fe 100644 --- a/tests/existing.at +++ b/tests/existing.at @@ -778,8 +778,7 @@ dnl In the case of the syntax error, the parser recovers, so it returns 0. # It reported 80 SR && 99 RR conflicts instead of 78/10!!! AT_TEST_EXISTING_GRAMMAR([[GNU Cim Grammar]], -[[%union {} - +[[ %token HACTIVATE HAFTER /*HAND*/ HARRAY HAT HBEFORE HBEGIN HBOOLEAN @@ -1400,7 +1399,6 @@ State 427 conflicts: 9 shift/reduce, 2 reduce/reduce AT_TEST_EXISTING_GRAMMAR([[GNU pic (Groff 1.18.1) Grammar]], [[%error-verbose -%union {} %token LABEL %token VARIABLE @@ -1950,7 +1948,7 @@ dnl without being followed by "of".) [[VARIABLE, '=', LABEL, LEFT, DOT_X]], dnl BISON-STDERR -[[input.y:471.11-48: warning: rule useless in parser due to conflicts: path: ORDINAL LAST object_type relative_path +[[input.y:470.11-48: warning: rule useless in parser due to conflicts: path: ORDINAL LAST object_type relative_path ]], dnl LAST-STATE |