aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/init/array28.C
blob: a75c36215f97dce10ac4062a7b57787e6fd6e17e (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 "" "" { target { ! c++20 } } }
  Foo x[2];
};