mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-23 19:23:02 +00:00
(%union synch line): Put a dummy member in
the union, because empty unions aren't allowed in C. Caught by GCC 3.4.0.
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
# Executing Actions. -*- Autotest -*-
|
# Executing Actions. -*- Autotest -*-
|
||||||
# Copyright (C) 2002 Free Software Foundation, Inc.
|
# Copyright (C) 2002, 2004 Free Software Foundation, Inc.
|
||||||
|
|
||||||
# This program is free software; you can redistribute it and/or modify
|
# This program is free software; you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
@@ -100,6 +100,7 @@ exp: '0';
|
|||||||
AT_TEST_SYNCLINE([%union synch line],
|
AT_TEST_SYNCLINE([%union synch line],
|
||||||
[[%union {
|
[[%union {
|
||||||
#error "2"
|
#error "2"
|
||||||
|
char dummy;
|
||||||
}
|
}
|
||||||
%{
|
%{
|
||||||
void yyerror (const char *s);
|
void yyerror (const char *s);
|
||||||
|
|||||||
Reference in New Issue
Block a user