1 // { dg-do assemble  }
2 // { dg-options "" }
3 // Origin: Mark Mitchell <mark@codesourcery.com>
4 
5 union A
6 {
7   int i;
8   int j;
9 
A()10   A () : i (3), j (2) {} // { dg-error "" } multiple initializations
11 };
12 
13 union B
14 {
15   int i;
16   union {
17     int j;
18   };
19 
B()20   B () : i (3), j (2) {} // { dg-error "" } multiple initializations
21 };
22 
23 union C
24 {
25   union {
26     struct {
27       int i;
28       int j;
29     };
30   };
31 
C()32   C () : i (3), j (2) {}
33 };
34