AsmWriter/Bitcode: MDTemplate{Type,Value}Parameter
[oota-llvm.git] / test / Transforms / SimplifyCFG / invoke_unwind.ll
index da6e3db2f8acf4b5370263798e011e575a22fa56..435bed0c295713d40523388b1864f1e06b3ec97f 100644 (file)
@@ -1,18 +1,20 @@
-; This testcase checks to see if the simplifycfg pass is converting invoke
-; instructions to call instructions if the handler just rethrows the exception.
-
 ; RUN: opt < %s -simplifycfg -S | FileCheck %s
 
 declare void @bar()
 
+; This testcase checks to see if the simplifycfg pass is converting invoke
+; instructions to call instructions if the handler just rethrows the exception.
 define i32 @test1() {
-; CHECK: @test1
+; CHECK-LABEL: @test1(
 ; CHECK-NEXT: call void @bar()
 ; CHECK-NEXT: ret i32 0
         invoke void @bar( )
-                        to label %Ok unwind label %Rethrow
-Ok:             ; preds = %0
+                        to label %1 unwind label %Rethrow
         ret i32 0
-Rethrow:                ; preds = %0
-        unwind
+Rethrow:
+        %exn = landingpad {i8*, i32} personality i32 (...)* @__gxx_personality_v0
+                 catch i8* null
+        resume { i8*, i32 } %exn
 }
+
+declare i32 @__gxx_personality_v0(...)