Debian Codegraph @

gcc/testsuite/gcc.dg/torture/pr112859.c

raw
1 /* { dg-do run } */
2 /* { dg-additional-options "-ftree-loop-distribution" } */
3
4 struct a {
5 char b;
6 int c;
7 } f, *i = &f;
8 static struct a e[4];
9 int *d, **g = &d;
10 static int h, j;
11 int main()
12 {
13 for (; h < 1; h++) {
14 struct a k = {1, 1};
15 for (j = 0; j < 2; j++) {
16 *i = e[h];
17 e[h] = k;
18 }
19 *g = 0;
20 }
21 if (f.c != 1)
22 __builtin_abort();
23 return 0;
24 }