summaryrefslogtreecommitdiff
path: root/test/log-or.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
commit6db6735df5f0e8d44c591c0ff8130c47f94c5d37 (patch)
tree0f0109e5d1d57918f4d679a2062a19965605916a /test/log-or.myr
parent10b54e590ef8bfd54c5dc9712d0864db4be4e1ce (diff)
downloadmc-6db6735df5f0e8d44c591c0ff8130c47f94c5d37.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/log-or.myr')
-rw-r--r--test/log-or.myr2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/log-or.myr b/test/log-or.myr
index 25e1712..7adef8b 100644
--- a/test/log-or.myr
+++ b/test/log-or.myr
@@ -1,5 +1,5 @@
use std
/* checks that evaluating a logical or works. exits with 1. */
const main = {
- -> 0 || 1
+ std.exit((0 || 1) castto(int))
}