aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorTom Smeding <tom.smeding@gmail.com>2018-01-03 23:10:59 +0100
committerTom Smeding <tom.smeding@gmail.com>2018-01-03 23:10:59 +0100
commit9911f9a73c7dc46069199e52f2bc54082d10366c (patch)
tree914cd4fc2367207271c1c53c7f11a96ed9bbc9b7 /test
Initial
Diffstat (limited to 'test')
-rw-r--r--test/t1.c21
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);
+}