summaryrefslogtreecommitdiff
path: root/test/outparam-sl.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/outparam-sl.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/outparam-sl.myr')
-rw-r--r--test/outparam-sl.myr2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/outparam-sl.myr b/test/outparam-sl.myr
index 78d7963..a1a8eb7 100644
--- a/test/outparam-sl.myr
+++ b/test/outparam-sl.myr
@@ -9,5 +9,5 @@ const main = {
var v
f(&v)
- -> v[0]
+ std.exit(v[0])
}