blob: 26f12e953c1c77d99a4434d750a7a353944e7948 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
// { 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) {}
};
|