]>
Commit | Line | Data |
---|---|---|
0c5f6539 JJ |
1 | /* PR debug/48768 */ |
2 | /* { dg-do compile } */ | |
3 | /* { dg-options "-O -fcompare-debug" } */ | |
393a031d | 4 | /* { dg-xfail-if "" { powerpc-ibm-aix* } { "*" } { "" } } */ |
0c5f6539 JJ |
5 | |
6 | int a, b; | |
7 | ||
8 | int | |
9 | bar (void) | |
10 | { | |
11 | int i, j = 1; | |
12 | for (i = 0; i != 10; i++) | |
13 | { | |
14 | lab: | |
15 | if (i) | |
16 | { | |
17 | int *k = &j; | |
18 | } | |
19 | else if (j) | |
20 | goto lab; | |
21 | } | |
22 | return 1; | |
23 | } | |
24 | ||
25 | inline int | |
26 | foo (int x) | |
27 | { | |
28 | unsigned int c = x; | |
29 | int d = x; | |
30 | if (bar ()) | |
31 | for (; c; c++) | |
32 | while (x >= 0) | |
33 | if (foo (d) >= 0) | |
34 | { | |
35 | d = bar (); | |
36 | a = b ? b : 1; | |
37 | } | |
38 | return 0; | |
39 | } |