OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
PR tree-optimization/50730
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gcc.dg
/
pr48768.c
1
/* PR debug/48768 */
2
/* { dg-do compile } */
3
/* { dg-options "-O -fcompare-debug" } */
4
5
int a, b;
6
7
int
8
bar (void)
9
{
10
int i, j = 1;
11
for (i = 0; i != 10; i++)
12
{
13
lab:
14
if (i)
15
{
16
int *k = &j;
17
}
18
else if (j)
19
goto lab;
20
}
21
return 1;
22
}
23
24
inline int
25
foo (int x)
26
{
27
unsigned int c = x;
28
int d = x;
29
if (bar ())
30
for (; c; c++)
31
while (x >= 0)
32
if (foo (d) >= 0)
33
{
34
d = bar ();
35
a = b ? b : 1;
36
}
37
return 0;
38
}