2018-05-17 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.target / tic6x / abi-align-1.c
blob963c2f6825f7d15e652aa1ef7ce310551a767d6c
1 /* { dg-do run } */
3 /* common */
4 char c;
5 /* arrays must be 8 byte aligned, regardless of size */
6 char c_ary[1];
8 /* data */
9 char d = 1;
10 char d_ary[1] = {1};
12 int main ()
14 if (((unsigned long)&c_ary[0] & 7) != 0)
15 return 1;
16 if (((unsigned long)&d_ary[0] & 7) != 0)
17 return 1;
18 return 0;