blob: b45fe8392a71d9e4a0933a171777403460101925 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// PR c++/52377
// { dg-do run { target c++11 } }
union A // { dg-error "multiple" }
{
int i = 4;
int j = 2;
};
A a;
union B
{
int i,j;
B(): i(1), j(2) {} // { dg-error "multiple" }
};
B b;
|