Fortran: Fix PR 47485.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / initlist12.C
blobc2a2b86520f9f4533729c2cc524de679cfd8bcf2
1 // PR c++/38698
2 // { dg-do compile { target c++11 } }
4 struct A
6   int i;
7 };
9 A a({1,2});                     // { dg-error "no match|cannot convert" }
11 union U
13   int i,j;
16 U u({1,2});                     // { dg-error "no match|cannot convert" }
18 union V {};
20 V v({1});                       // { dg-error "no match|too many initializers" }