/cp
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / initlist12.C
blobf344c780cc25cfe3a0696de942f6979184d594c5
1 // PR c++/38698
2 // { dg-options "-std=c++0x" }
3 // { dg-prune-output "note" }
5 struct A
7   int i;
8 };
10 A a({1,2});                     // { dg-error "no match" }
12 union U
14   int i,j;
17 U u({1,2});                     // { dg-error "no match" }
19 union V {};
21 V v({1});                       // { dg-error "no match" }