Merged revisions 208012,208018-208019,208021,208023-208030,208033,208037,208040-20804...
[official-gcc.git] / main / gcc / testsuite / g++.dg / cpp0x / initlist12.C
blob5efdc6711dd3b893f5be5635f01b5a2ac9fd02a6
1 // PR c++/38698
2 // { dg-do compile { target c++11 } }
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" }