repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2013-05-29 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
loop-10.c
blob
1a6afba6b9592e058fd0b1b4e90bd1cdc1d17b40
1
/* Reduced from PR optimization/5076, PR optimization/2847 */
2
3
static int
count
=
0
;
4
5
static void
6
inc
(
void
)
7
{
8
count
++;
9
}
10
11
int
12
main
(
void
)
13
{
14
int
iNbr
=
1
;
15
int
test
=
0
;
16
while
(
test
==
0
)
17
{
18
inc
();
19
if
(
iNbr
==
0
)
20
break
;
21
else
22
{
23
inc
();
24
iNbr
--;
25
}
26
test
=
1
;
27
}
28
if
(
count
!=
2
)
29
abort
();
30
return
0
;
31
}