summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/pr45112.C
blob: 34dd3e1bcd811fba0287c36ef0712a5cdd67ffec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { dg-do compile } */

struct JSString
{
  unsigned char mLength;
  static JSString unitStringTable[];
};

JSString JSString::unitStringTable[] __attribute__ ((aligned (8))) = { 1 };

int bug [__alignof__ (JSString::unitStringTable) >= 8 ? 1 : -1];