PR c++/85553
[official-gcc.git] / gcc / testsuite / g++.dg / ext / is_std_layout1.C
blob007c94a453ca50248c54829fe74fd2c3b5b57222
1 // { dg-do compile { target c++11 } }
3 template <int> struct E { };
5 struct E1: E<0>, E<1> { };
6 struct E2: E<2>, E<3> { };
8 struct A1x { int n; };
9 struct D2: A1x, E1, E2 { };
11 #define SA(X) static_assert((X),#X)
12 SA(__is_standard_layout (D2));