blob: 13f1a1166e68e3c20e32aa16a6bbc7285ce6045b [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; 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
4; END.
5
6declare void %exit(int)
7declare void %exitonly(int)
8
9implementation ; Functions:
10
11int %main () {
12 call void %exitonly ( int 3 )
13 call void %exit ( int 3 )
14 ret int 0
15}