blob: 26f12e953c1c77d99a4434d750a7a353944e7948 [file] [log] [blame]
// { dg-do assemble }
// { dg-options "" }
// Origin: Mark Mitchell <mark@codesourcery.com>
union A
{
int i;
int j;
A () : i (3), j (2) {} // { dg-error "" } multiple initializations
};
union B
{
int i;
union {
int j;
};
B () : i (3), j (2) {} // { dg-error "" } multiple initializations
};
union C
{
union {
struct {
int i;
int j;
};
};
C () : i (3), j (2) {}
};