blob: f4aae4f58d9f09260870a049a2ef56ef0bb0574b [file] [log] [blame]
// { dg-do run { target c++11 } }
struct A { int i,j; };
struct X {
A a = {1,1};
};
constexpr X table[2][2] = {{ {} }};
#define SA(X) static_assert(X,#X)
SA(table[1][1].a.i == 1);
extern "C" void abort();
const int *p = &table[1][1].a.j;
int main()
{
if (*p != 1)
abort();
}