PR c++/85765 - SFINAE and non-type default template arg.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / gen-attrs-21.C
blob2d5ad04b02c65c739c8e0d127b3b2d91f6dadc57
1 // PR c++/20763
2 // { dg-do compile { target c++11 } }
4 typedef void *voidp;
6 struct S
8   char a;
9   voidp b [[gnu::aligned (16)]];
12 struct T
14   char a;
15   void * b [[gnu::aligned (16)]];
18 static_assert (sizeof (S) == sizeof (T),
19                "struct S and T should have the same size");
21 static_assert (sizeof (S) == 32, "sizeof (S) == 8 + 16 + 8");