☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-array24.C
☽
☼
gcc/testsuite/g++.dg/cpp0x/constexpr-array24.C
code
plain
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);