Add missing newlines at EOF (for clang++).
[oota-llvm.git] / test / Transforms / SimplifyCFG / 2003-08-05-InvokeCrash.ll
index b6638ee519dae572349f52b0ba4e8f9edda6914b..c019931c07e756a8948c2cc2ab05d90921ce9333 100644 (file)
@@ -1,9 +1,13 @@
 ; Do not remove the invoke!
 ;
-; RUN: llvm-as < %s | opt -simplifycfg -disable-output
+; RUN: opt < %s -simplifycfg -disable-output
 
-int %test() {
-       %A = invoke int %test() to label %Ret except label %Ret
-Ret:
-       ret int %A
+define i32 @test() {
+       %A = invoke i32 @test( )
+                       to label %Ret unwind label %Ret2                ; <i32> [#uses=1]
+Ret:           ; preds = %0
+       ret i32 %A
+Ret2:          ; preds = %0
+       ret i32 undef
 }
+