Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/nsdmi-union2.C

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