Add CHECK-LABELs
[oota-llvm.git] / test / Transforms / CodeExtractor / 2004-11-12-InvokeExtract.ll
index 8cd6094826681d74f417ec37c822a50fff683a74..92603d9e634ea83067b8c2435201db999867e543 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | opt -extract-blocks -disable-output
+; RUN: opt < %s -extract-blocks -disable-output
 define i32 @foo() {
         br label %EB
 
@@ -10,6 +10,9 @@ Cont:           ; preds = %EB
         ret i32 %V
 
 Unw:            ; preds = %EB
-        unwind
+        %exn = landingpad { i8*, i32 } personality i32 (...)* @__gcc_personality_v0
+                 catch i8* null
+        resume { i8*, i32 } %exn
 }
 
+declare i32 @__gcc_personality_v0(...)