Debian Codegraph @

gcc/testsuite/gcc.dg/pr119594.c

raw
1 /* PR rtl-optimization/119594 */
2 /* { dg-do run } */
3 /* { dg-options "-Os -fno-dce -fno-tree-dce -fno-tree-dse" } */
4
5 int a, b;
6 static unsigned c = -1;
7
8 void
9 foo (int e)
10 {
11 a = a ^ e;
12 }
13
14 void
15 bar (long e)
16 {
17 foo (e >> 1);
18 }
19
20 int
21 main ()
22 {
23 int g[2];
24 for (int h = 0; h < 2; h++)
25 g[h] = -1;
26 for (; b; b++)
27 ;
28 g[1] = 0;
29 bar (c);
30 if (!a)
31 __builtin_abort ();
32 }