aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/init/array28.C
blob: 8cf19ba43310b6f02ff4e78af11146fd5c80541e (plain)
1
2
3
4
5
6
7
// PR c++/49669

struct Foo { explicit Foo(int) { } };
struct Goo {
  Goo() : x(Foo(4), Foo(5)) { } // { dg-error "array" }
  Foo x[2];
};