New version of the assembler, that does better branch generation.
[sixpic.git] / tests / functions / nested-sequential.c
blob26b503e9f36fc5d7eca0a02442b853434d498920
1 /* Dummy test, just to see what happens with nested/sequential calls */
3 int g (int x){
4 return x+1;
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;
14 return n;
17 int x;
18 x = f(3);
19 g(6); // sequential calls look ok
20 x + 3;