1 // { dg-do compile { target c++11 } } 2 3 typedef char layout_type; 4 5 struct A { 6 layout_type member alignas (double); 7 }; 8 9 static_assert (alignof (A) == alignof (double), 10 "alignment of struct A must be alignof (double)"); 11 alignas(alignof (long double))12struct alignas (alignof (long double)) B { 13 layout_type member; 14 }; 15 16 static_assert (alignof (B) == alignof (long double), 17 "alignment of struct A must be alignof (double double)"); 18