Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/constexpr-empty16.C

raw
1 // PR c++/101194
2 // { dg-do compile { target c++11 } }
3
4 struct nodefault {
5 constexpr nodefault(int) { }
6 };
7
8 constexpr nodefault x[1] = { nodefault{0} };
9
10 constexpr nodefault y = x[0];