1 // { dg-do compile { target c++11 } }
5 using layout_type __attribute ((aligned(__alignof(double)))) =
12 using layout_type __attribute ((aligned(__alignof(T)))) =
19 using layout_type __attribute ((aligned(__alignof(T)))) =
31 using layout_type __attribute ((aligned(__alignof(T)))) =
36 template<bool> struct StaticAssert;
37 template<> struct StaticAssert<true> {};
39 StaticAssert<__alignof(X<double>) == __alignof(double)> d1;
40 StaticAssert<__alignof(Y<double>) == __alignof(double)> d2;
41 StaticAssert<__alignof(Z<double>) == __alignof(double)> d3;
42 StaticAssert<__alignof(A<double*>) == __alignof(double)> d4;