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
2009-11-23 Steve Ellcey <sje@cup.hp.com>
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gcc.dg
/
debug
/
pr36690-3.c
1
/* PR debug/36690 */
2
/* { dg-do run } */
3
/* { dg-options "-O0 -g -dA" } */
4
5
int cnt;
6
7
void
8
bar (int i)
9
{
10
cnt += i;
11
}
12
13
void
14
foo (int i, int j)
15
{
16
if (j)
17
{
18
bar (i + 1);
19
goto f1;
20
}
21
bar (i + 2);
22
goto f2;
23
f1:
24
if (i > 10)
25
goto f3;
26
f2:
27
if (i > 40)
28
goto f4;
29
else
30
goto f5;
31
f3:
32
bar (i);
33
f4:
34
bar (i);
35
f5:
36
bar (i);
37
}
38
39
int
40
main (void)
41
{
42
foo (0, 1);
43
foo (11, 1);
44
foo (21, 0);
45
foo (41, 0);
46
return 0;
47
}