mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
339ff0acb8
program exits with code 0, no error. If the call does not work/succeed, main returns 1, so we notice it. The other way around doesn't work. :) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4984 91177308-0d34-0410-b5e6-96231b3b80d8
8 lines
77 B
LLVM
8 lines
77 B
LLVM
|
|
declare void %exit(int)
|
|
|
|
int %main() {
|
|
call void %exit(int 0)
|
|
ret int 1
|
|
}
|