From 9911f9a73c7dc46069199e52f2bc54082d10366c Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Wed, 3 Jan 2018 23:10:59 +0100 Subject: Initial --- test/t1.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 test/t1.c (limited to 'test') 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); +} -- cgit v1.2.3-70-g09d2