2 // { dg-do compile { target c++11 } }
3 // { dg-options "-pedantic" }
5 #define SA(X) static_assert(X,#X)
18 constexpr A() : i(42) {}
34 }; // { dg-warning "anonymous struct" }
35 }; // { dg-warning "anonymous struct" }
38 constexpr B(): h(1), i(2), k(3), l(4) {}
42 SA((b.h == 1 && b.i == 2 && b.k == 3 && b.l == 4));