Debian Codegraph @

gcc/testsuite/gcc.c-torture/execute/pr111422.c

raw
1 /* PR middle-end/111422 */
2
3 int a, b;
4 int *c = &b;
5 unsigned d;
6 signed char e;
7 int f = 1;
8
9 int
10 foo (int k, signed char *l)
11 {
12 if (k < 6)
13 return a;
14 l[0] = l[1] = l[k - 1] = 8;
15 return 0;
16 }
17
18 int
19 bar (int k)
20 {
21 signed char g[11];
22 int h = foo (k, g);
23 return h;
24 }
25
26 int
27 main ()
28 {
29 for (; b < 8; b = b + 1)
30 ;
31 int j;
32 int *n[8];
33 for (j = 0; 18446744073709551608ULL + bar (*c) + *c + j < 2; j++)
34 n[j] = &f;
35 for (; e <= 4; e++)
36 d = *n[0] == f;
37 if (d != 1)
38 __builtin_abort ();
39 }