summaryrefslogtreecommitdiff
path: root/test/splitline.myr
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2013-12-16 16:48:38 -0500
committerOri Bernstein <ori@eigenstate.org>2013-12-16 16:48:38 -0500
commit28a86b79b0ab5a89b292728882bd01bcfc12bcdf (patch)
tree0f0109e5d1d57918f4d679a2062a19965605916a /test/splitline.myr
parentd04544b4bbe5d5e101af128cfeebc194d65fab01 (diff)
downloadmc-28a86b79b0ab5a89b292728882bd01bcfc12bcdf.tar.gz
Convert main() to effectively return void.
Now, if we exit thorugh the end of main, we will ignore the return value, and call exit(0) from the start stub. If you want to exit with a different return value, you need to call std.exit(val)
Diffstat (limited to 'test/splitline.myr')
-rw-r--r--test/splitline.myr4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/splitline.myr b/test/splitline.myr
index 13df1d8..edde6cf 100644
--- a/test/splitline.myr
+++ b/test/splitline.myr
@@ -1,6 +1,6 @@
use std
const main = {
- -> 1 + \ /* ignored crap */
- 2
+ std.exit(1 + \ /* ignored crap */
+ 2)
}