mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-17 03:30:28 +00:00
ceca194c43
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48137 91177308-0d34-0410-b5e6-96231b3b80d8
16 lines
310 B
LLVM
16 lines
310 B
LLVM
; Test that the ExitInMainOptimization pass works correctly
|
|
; RUN: llvm-as < %s | opt -simplify-libcalls | llvm-dis | \
|
|
; RUN: grep {ret i32 3} | count 1
|
|
; END.
|
|
|
|
declare void @exit(i32)
|
|
|
|
declare void @exitonly(i32)
|
|
|
|
define i32 @main() {
|
|
call void @exitonly( i32 3 )
|
|
call void @exit( i32 3 )
|
|
ret i32 0
|
|
}
|
|
|