summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/constexpr-array24.C
blob: 538969830bac19aa7632a2bb97efa6bfce4ee9ad (plain)
1
2
3
4
5
6
7
8
9
10
// PR c++/90951
// { dg-do compile { target c++11 } }

#define assert(expr) static_assert (expr, #expr)

struct S { const char a[2]; };

constexpr struct S a[1][1][1] = { };

assert ('\0' == *a[0][0][0].a);