Debian Codegraph @

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

raw
1 // PR c++/90951
2 // { dg-do compile { target c++11 } }
3
4 #define assert(expr) static_assert (expr, #expr)
5
6 struct S { const char a[2]; };
7
8 constexpr struct S a[1][1][1] = { };
9
10 assert ('\0' == *a[0][0][0].a);