Debian Codegraph @

gcc/testsuite/gcc.dg/torture/pr111137.c

raw
1 /* { dg-do run } */
2
3 int b[3][8];
4 short d;
5 volatile int t = 1;
6
7 void __attribute__((noipa))
8 foo()
9 {
10 int g = t;
11 for (int e = 1; e >= 0; e--)
12 {
13 d = 1;
14 for (; d >= 0; d--)
15 {
16 b[0][d * 2 + 1] = 0;
17 b[g - 1 + d][0] ^= 1;
18 b[0][d * 2 + 2] = 0;
19 b[g - 1 + d][1] ^= 1;
20 }
21 }
22 }
23
24 int
25 main()
26 {
27 foo ();
28 if (b[0][1] != 1)
29 __builtin_abort();
30 }