1 /* PR rtl-optimization/59166 */
2 /* { dg-additional-options "-fcompare-debug" } */
3 /* { dg-xfail-if "AIX compare debug" { powerpc-ibm-aix* } } */
4
5 int a, b, c, f, g;
6
7 void
8 foo ()
9 {
10 for (; b; b++)
11 for (; f; f = g)
12 for (; a;)
13 ;
14 }
15
16 static int
17 bar (int p)
18 {
19 short d;
20 if (c)
21 {
22 for (; f; f = g);
23 foo ();
24 d = p;
25 char e = d;
26 if (p)
27 return 1;
28 }
29 return p;
30 }
31
32 int
33 main ()
34 {
35 bar (0);
36 bar (g);
37 return 0;
38 }