OSDN Git Service

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