Merge -r 127928:132243 from trunk
[official-gcc.git] / gcc / testsuite / g++.dg / ext / tmplattr2.C
blob4fd651d6c3b105b2fec9ff26a30d3dd2d318b43e
1 // PR c++/17743
3 template <unsigned Len, unsigned Align>
4 struct aligned_storage
6   typedef char type[Len] __attribute__((aligned((Align))));
7 };
9 template<typename T>
10 struct X
12   typename aligned_storage<sizeof(T),__alignof(T)>::type data;
15 template<bool> struct StaticAssert;
16 template<> struct StaticAssert<true> {};
18 StaticAssert<__alignof (X<double>) == __alignof (double)> dummy;