1 // { dg-options -std=c++0x } 2 3 #define SA(X) static_assert(X,#X) 4 5 struct A 6 { 7 int i = f(); 8 int j { f() }; fA9 static constexpr int f() { return 42; } 10 }; 11 12 constexpr A a; 13 SA(a.i == 42); 14 SA(a.j == 42); 15