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
Added a hack to support hexadecimal literals. However, only the the
[sixpic.git]
/
tests
/
test2.c
blob
beeed86b0e878726aab5f9054cde9908c49e8e6c
1
/* File: test2.c */
2
3
/* Test function calls and while loops */
4
5
int
x
;
6
int
n
;
7
8
void
f
()
9
{
10
while
(
n
)
// TODO doesn't work with > 0
11
{
12
foo
:
13
x
=
x
+
n
;
14
n
--;
15
bar
:
16
x
--;
17
}
18
}
19
20
x
=
0
;
21
n
=
5
;
22
23
f
();
24
25
n
=
x
;