diff options
author | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2015-10-04 15:19:05 -0400 |
---|---|---|
committer | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2015-10-04 15:19:05 -0400 |
commit | 47dcf86f197b1eb48482b6499316ba71488ff332 (patch) | |
tree | 5a8e7ddcaea8da6ca27a924eee27458e4543e233 /minic | |
parent | 6b3cbe2e83b2a3278d83945a529552533b39be88 (diff) | |
download | roux-47dcf86f197b1eb48482b6499316ba71488ff332.tar.gz |
update test to new syntax
Diffstat (limited to 'minic')
-rw-r--r-- | minic/test.minic | 10 |
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; } |