Debian Codegraph @

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

raw
1 // PR c++/64899
2 // { dg-do compile { target c++11 } }
3
4 struct S
5 {
6 int i;
7 constexpr S (): i(42) {}
8 };
9
10 constexpr S sa[2];
11 #define SA(X) static_assert((X),#X)
12 SA(sa[1].i == 42);