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
New version of the assembler, that does better branch generation.
[sixpic.git]
/
tests
/
functions
/
nested-sequential.c
blob
26b503e9f36fc5d7eca0a02442b853434d498920
1
/* Dummy test, just to see what happens with nested/sequential calls */
2
3
int
g
(
int
x
){
4
return
x
+
1
;
5
}
6
7
int
f
(
int
x
){
8
int
n
;
9
n
=
0
;
10
while
(
n
<
10
){
11
n
=
g
(
n
);
// nested calls look ok, but recursion isn't, and we don't care
12
n
=
n
+
x
;
13
}
14
return
n
;
15
}
16
17
int
x
;
18
x
=
f
(
3
);
19
g
(
6
);
// sequential calls look ok
20
x
+
3
;