Debian Codegraph @

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

raw
1 /* PR middle-end/110115 */
2
3 int a;
4 signed char b;
5
6 static int
7 foo (signed char *e, int f)
8 {
9 int d;
10 for (d = 0; d < f; d++)
11 e[d] = 0;
12 return d;
13 }
14
15 int
16 bar (signed char e, int f)
17 {
18 signed char h[20];
19 int i = foo (h, f);
20 return i;
21 }
22
23 int
24 baz ()
25 {
26 switch (a)
27 {
28 case 'f':
29 return 0;
30 default:
31 return ~0;
32 }
33 }
34
35 int
36 main ()
37 {
38 {
39 signed char *k[3];
40 int d;
41 for (d = 0; bar (8, 15) - 15 + d < 1; d++)
42 k[baz () + 1] = &b;
43 *k[0] = -*k[0];
44 }
45 }