Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/nsdmi-defer1.C

raw
1 // { dg-do compile { target c++11 } }
2
3 #define SA(X) static_assert(X,#X)
4
5 struct A
6 {
7 int i = f();
8 int j { f() };
9 static constexpr int f() { return 42; }
10 };
11
12 constexpr A a;
13 SA(a.i == 42);
14 SA(a.j == 42);