diff options
author | Ori Bernstein <ori@eigenstate.org> | 2013-12-16 16:48:38 -0500 |
---|---|---|
committer | Ori Bernstein <ori@eigenstate.org> | 2013-12-16 16:48:38 -0500 |
commit | 6db6735df5f0e8d44c591c0ff8130c47f94c5d37 (patch) | |
tree | 0f0109e5d1d57918f4d679a2062a19965605916a /test/sizeof.myr | |
parent | 10b54e590ef8bfd54c5dc9712d0864db4be4e1ce (diff) | |
download | mc-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/sizeof.myr')
-rw-r--r-- | test/sizeof.myr | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/sizeof.myr b/test/sizeof.myr index 69637c1..35d80ca 100644 --- a/test/sizeof.myr +++ b/test/sizeof.myr @@ -1,5 +1,5 @@ use std /* checks that sizeof() works. exits with 4. */ const main = { - -> sizeof(int) + std.exit(sizeof(int)) } |