2 // { dg-do compile { target c++11 } }
4 template <class T> struct A
9 typedef A<int> T[4] alignas (2 * alignof (int));
12 typedef A<char> T2[4] alignas (2 * alignof (int));
14 #define SA(X) static_assert((X),#X)
15 SA(alignof (T) == 2 * alignof(int));
16 SA(alignof (T2) == 2 * alignof(int));