1 ; Test that the ExitInMainOptimization pass works correctly
2 ; RUN: llvm-upgrade < %s | llvm-as | opt -simplify-libcalls | llvm-dis | \
3 ; RUN: grep -c {ret i32 3} | grep 1
6 declare void %exit(int)
7 declare void %exitonly(int)
9 implementation ; Functions:
12 call void %exitonly ( int 3 )
13 call void %exit ( int 3 )