summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--minic/test.minic10
1 files changed, 8 insertions, 2 deletions
diff --git a/minic/test.minic b/minic/test.minic
index 8d30eb1..433ad17 100644
--- a/minic/test.minic
+++ b/minic/test.minic
@@ -1,9 +1,15 @@
+main()
 {
 	int x;
+	int y;
 	int *p;
 
 	x = 0;
 	p = &x;
-	while (x < 10)
-		*p = x + 1;
+	p[0] = 2 + 2;
+	while (x > 3) {
+		x = x - 1;
+	}
+
+	y = x == 3;
 }