[tests] Cleanup initialization of test suffixes.
[oota-llvm.git] / test / Transforms / Inline / invoke_test-2.ll
index 68b8bd8b65a375f9931e5af05572246140002de9..680a5ca2542a299d49aec00c2f60d20cab9827cd 100644 (file)
@@ -1,7 +1,7 @@
 ; Test that if an invoked function is inlined, and if that function cannot
 ; throw, that the dead handler is now unreachable.
 
-; RUN: llvm-as < %s | opt -inline -simplifycfg | llvm-dis | \
+; RUN: opt < %s -inline -simplifycfg -S | \
 ; RUN:   not grep UnreachableExceptionHandler
 
 declare void @might_throw()
@@ -14,6 +14,8 @@ cont:           ; preds = %0
         ret i32 0
 
 exc:            ; preds = %0
+        %exn = landingpad {i8*, i32} personality i32 (...)* @__gxx_personality_v0
+                 cleanup
         ret i32 1
 }
 
@@ -26,5 +28,9 @@ cont:           ; preds = %0
         ret i32 %X
 
 UnreachableExceptionHandler:            ; preds = %0
+        %exn = landingpad {i8*, i32} personality i32 (...)* @__gxx_personality_v0
+                 cleanup
         ret i32 -1
 }
+
+declare i32 @__gxx_personality_v0(...)