| 1 |
// { dg-do compile { target c++11 } } |
| 2 |
|
| 3 |
template <int> struct E { }; |
| 4 |
|
| 5 |
struct E1: E<0>, E<1> { }; |
| 6 |
struct E2: E<2>, E<3> { }; |
| 7 |
|
| 8 |
struct A1x { int n; }; |
| 9 |
struct D2: A1x, E1, E2 { }; |
| 10 |
|
| 11 |
#define SA(X) static_assert((X),#X) |
| 12 |
SA(__is_standard_layout (D2)); |