X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=test%2FTransforms%2FSimplifyLibCalls%2FExitInMain.ll;h=8abf3b1cc46ba9dc287604f2c3a210603463ef8c;hb=b1747f0b23d78ba0e503ec098190a22a9a16012f;hp=29f69d198a3cb361f245f00feb4e6d258e65da59;hpb=8fe86dde1cab3c6fe0e0c8b9d3539d1054001368;p=oota-llvm.git diff --git a/test/Transforms/SimplifyLibCalls/ExitInMain.ll b/test/Transforms/SimplifyLibCalls/ExitInMain.ll index 29f69d198a3..8abf3b1cc46 100644 --- a/test/Transforms/SimplifyLibCalls/ExitInMain.ll +++ b/test/Transforms/SimplifyLibCalls/ExitInMain.ll @@ -1,13 +1,15 @@ ; Test that the ExitInMainOptimization pass works correctly -; RUN: llvm-as < %s | opt -simplify-libcalls | llvm-dis | grep -c 'ret int 3' | grep 1 +; RUN: llvm-as < %s | opt -simplify-libcalls | llvm-dis | \ +; RUN: grep {ret i32 3} | count 1 +; END. -declare void %exit(int) -declare void %exitonly(int) +declare void @exit(i32) -implementation ; Functions: +declare void @exitonly(i32) -int %main () { - call void %exitonly ( int 3 ) - call void %exit ( int 3 ) - ret int 0 +define i32 @main() { + call void @exitonly( i32 3 ) + call void @exit( i32 3 ) + ret i32 0 } +