Debian Codegraph @

gcc/testsuite/gcc.dg/pr111070.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O" } */
3
4 /* common */
5 char c;
6 /* arrays must be 8 byte aligned, regardless of size */
7 char c_ary[1];
8
9 /* data */
10 char d = 1;
11 char d_ary[1] = {1};
12
13 int main ()
14 {
15 if (((__UINTPTR_TYPE__)&c_ary[0] & 7) != 0)
16 return 1;
17 if (((__UINTPTR_TYPE__)&d_ary[0] & 7) != 0)
18 return 1;
19 return 0;
20 }