instcombine does memset optzns.
[oota-llvm.git] / test / Transforms / SimplifyLibCalls / ExitInMain.ll
index 29f69d198a3cb361f245f00feb4e6d258e65da59..8abf3b1cc46ba9dc287604f2c3a210603463ef8c 100644 (file)
@@ -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
 }
+