Debian Codegraph @

gcc/testsuite/gcc.dg/torture/pr115347.c

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