correct suffix matching to search for s/l/t suffixes on
[oota-llvm.git] / test / Transforms / SimplifyCFG / 2003-08-05-MishandleInvoke.ll
index 179ef72d6c98d14ead49906e06eda5d5b0676d1c..15cd7730449ee3bd6be7a7f5d93c261cf0d8b3ae 100644 (file)
@@ -1,10 +1,12 @@
 ; Do not remove the invoke!
 ;
-; RUN: llvm-as < %s | opt -simplifycfg | llvm-dis | grep invoke
+; RUN: opt < %s -simplifycfg -S | grep invoke
 
-int %test() {
-       invoke int %test() to label %Ret except label %Ret
-Ret:
-       %A = add int 0, 1
-       ret int %A
+define i32 @test() {
+       invoke i32 @test( )
+                       to label %Ret unwind label %Ret         ; <i32>:1 [#uses=0]
+Ret:           ; preds = %0, %0
+       %A = add i32 0, 1               ; <i32> [#uses=1]
+       ret i32 %A
 }
+