Debian Codegraph @

gcc/testsuite/g++.dg/ext/align2.C

raw
1 // PR c++/10179
2
3 struct __attribute((aligned(__alignof(double)))) A
4 { /* empty */ };
5
6 struct T : public A
7 {
8 char c;
9 };
10
11 template<bool> struct StaticAssert;
12 template<> struct StaticAssert<true> {};
13
14 StaticAssert<__alignof(T) == __alignof(double)> d;