Debian Codegraph @

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

raw
1 /* PR rtl-optimization/57861 */
2
3 extern void abort (void);
4 short a = 1, f;
5 int b, c, d, *g = &b, h, i, j;
6 unsigned int e;
7
8 static int
9 foo (char p)
10 {
11 int k;
12 for (c = 0; c < 2; c++)
13 {
14 i = (j = 0) || p;
15 k = i * p;
16 if (e < k)
17 {
18 short *l = &f;
19 a = d && h;
20 *l = 0;
21 }
22 }
23 return 0;
24 }
25
26 int
27 main ()
28 {
29 *g = foo (a);
30 if (a != 0)
31 abort ();
32 return 0;
33 }