Fortran: Fix PR 47485.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / constexpr-empty19.C
blob5ad67682c5bc82134d4e5d52bd09c59cb0e0615c
1 // PR c++/110197
2 // { dg-do compile { target c++11 } }
4 struct A {
5   constexpr A() : A(__builtin_is_constant_evaluated()) { }
6   constexpr A(int) { }
7 };
8 constexpr A a1[1] = {{}};
9 constexpr A a2[2] = {{}, {}};
10 constexpr A a3[3] = {{}, {}, {}};
11 constexpr A a4[4] = {};
12 constexpr A a5[5] = {};