repo.or.cz
/
sixpic.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Changed the way jumps are generated to avoid generating jumps to the
[sixpic.git]
/
tests
/
control-structures
/
while.c
blob
3a61dfd89a6c359d23ca0dfdaa09112b57403e01
1
/* Test function calls and while loops */
2
3
int
x
;
4
int
n
;
5
6
void
f
()
7
{
8
while
(
n
>
0
)
9
{
10
x
=
x
+
n
;
11
n
--;
12
x
--;
13
}
14
}
15
16
x
=
0
;
17
n
=
5
;
18
19
f
();
20
21
n
=
x
;