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

struct S
{
  int i;
  constexpr S (): i(42) {}
};

constexpr S sa[2];
#define SA(X) static_assert((X),#X)
SA(sa[1].i == 42);