5 typedef char layout_type[sizeof(T)]
6 __attribute ((aligned(__alignof(double))));
12 typedef char layout_type[sizeof(T)]
13 __attribute ((aligned(__alignof(T))));
19 typedef char layout_type[sizeof(T)]
20 __attribute ((aligned(__alignof(T))));
31 typedef char layout_type[sizeof(T)]
32 __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;