From 47dcf86f197b1eb48482b6499316ba71488ff332 Mon Sep 17 00:00:00 2001 From: Quentin Carbonneaux Date: Sun, 4 Oct 2015 15:19:05 -0400 Subject: update test to new syntax --- minic/test.minic | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'minic/test.minic') 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; } -- cgit 1.4.1