Debian Codegraph @

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

raw
1 // PR c++/61994
2 // { dg-do compile { target c++11 } }
3
4 struct A { int i,j; };
5
6 struct X {
7 A a = {1,1};
8 };
9
10 constexpr X table[1][1] = {{ {} }};
11
12 #define SA(X) static_assert(X,#X)
13 SA(table[0][0].a.i == 1);