Fix PR c++/69139 (deduction failure with trailing return type)
[official-gcc.git] / 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" }