gcc/testsuite/g++.dg/cpp0x/constexpr-empty19.C
raw| 1 | // PR c++/110197 |
| 2 | // { dg-do compile { target c++11 } } |
| 3 | |
| 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] = {}; |