* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / gen-attrs-54.C
blob45aa8e4758f7b0e93ee1cbbd1ea0ca03c5fe9f7c
1 // PR c++/56859
2 // { dg-require-effective-target c++11 }
4 template<unsigned size, unsigned alignment>
5 struct aligned_storage
7   using type = struct { alignas(alignment) unsigned char data[size]; };
8 };
10 #define SA(X) static_assert((X),#X)
11 SA(alignof(aligned_storage<8,1>::type) == 1);
12 SA(alignof(aligned_storage<8,2>::type) == 2);
13 SA(alignof(aligned_storage<8,4>::type) == 4);
14 SA(alignof(aligned_storage<8,8>::type) == 8);