Replace uses of unwind with unreachable for the same effect.
[oota-llvm.git] / test / Transforms / CodeExtractor / 2004-11-12-InvokeExtract.ll
index 4ada2aeb2883df72be1582b2ba779447f4dfd663..fc58577f67abf8d8abfb7842ab8dd8ffbfa230aa 100644 (file)
@@ -1,10 +1,15 @@
-; RUN: llvm-upgrade < %s | llvm-as | opt -extract-blocks -disable-output
-int %foo() {
-       br label %EB
-EB:
-       %V = invoke int %foo() to label %Cont unwind label %Unw
-Cont:
-       ret int %V
-Unw:
-       unwind
+; RUN: opt < %s -extract-blocks -disable-output
+define i32 @foo() {
+        br label %EB
+
+EB:             ; preds = %0
+        %V = invoke i32 @foo( )
+                        to label %Cont unwind label %Unw                ; <i32> [#uses=1]
+
+Cont:           ; preds = %EB
+        ret i32 %V
+
+Unw:            ; preds = %EB
+        unwind
 }
+