diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/t1.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/t1.c b/test/t1.c new file mode 100644 index 0000000..229d5e9 --- /dev/null +++ b/test/t1.c @@ -0,0 +1,21 @@ +int glob; + +int fibo(int n) { + if (n <= 0) return 0; + int a = 0; + int b = 1; + int i = 1; + while (i < n) { + int c = a + b; + a = b; + b = c; + i = i + 1; + } + return b; +} + +int main(int argc, int **argv) { + int a = 1; + int b = 2 + a * 3; + holo_dec(a); +} |