commit 47dcf86f197b1eb48482b6499316ba71488ff332 parent 6b3cbe2e83b2a3278d83945a529552533b39be88 Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu> Date: Sun, 4 Oct 2015 15:19:05 -0400 update test to new syntax Diffstat:
| M | minic/test.minic | | | 10 | ++++++++-- |
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git 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; }