aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/ext/align2.C
blob: da54bd9386b34148c522bd3afc117f2ef0329715 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// PR c++/10179

struct __attribute((aligned(__alignof(double)))) A
{ /* empty */ };

struct T : public A
{
  char c;
};

template<bool> struct StaticAssert;
template<> struct StaticAssert<true> {};

StaticAssert<__alignof(T) == __alignof(double)> d;