Fix PR c++/69139 (deduction failure with trailing return type)
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / nsdmi-union2.C
blob069232755f9973bf7477f7c217198c4e351543d8
1 // PR c++/52377
2 // { dg-require-effective-target c++11 }
4 union A                         // { dg-error "multiple" }
6   int i = 4;
7   int j = 2;
8 };
10 A a;
12 union B
14   int i,j;
15   B(): i(1), j(2) {}            // { dg-error "multiple" }
18 B b;