mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-03 17:39:48 +00:00
8ac346c316
llvm-svn: 48137
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
|
|
}
|
|
|