summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/ext/attrib21.C
blob: 2fc5800b05e187d05fc0dac556677a701b1536e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// PR c++/20763

typedef void *voidp;

struct S
{
  char a;
  voidp __attribute__ ((aligned (16))) b;
};

struct T
{
  char a;
  void *__attribute__ ((aligned (16))) b;
};

int f[sizeof (struct S) != sizeof (struct T) ? -1 : 1];