Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.dg / ext / attrib17.C
blob43cf264f51e99776b522077c94836c67cb852286
1 // { dg-do compile }
2 // Origin: Benjamin Kosnik <bkoz at gcc dot gnu dot org>
3 // PR c++/17743: Attributes applied to typedefs.
5 struct A {
6   typedef char layout_type[sizeof(double)]
7   __attribute__((aligned(__alignof__(double))));
8   layout_type data;
9 };
11 struct B {
12   typedef char layout_type[sizeof(double)];
13   layout_type data   __attribute__((aligned(__alignof__(double))));
16 template<bool> struct StaticAssert;
17 template<> struct StaticAssert<true> {};
19 StaticAssert<__alignof__(A) == __alignof__(B)> a1;