X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=test%2FTransforms%2FInline%2Finvoke_test-2.ll;h=680a5ca2542a299d49aec00c2f60d20cab9827cd;hb=24ec2e5a72d7fca58f8ae2b3c01501a9927ef04e;hp=b04f8abc34c2ca80a0754084865c7706cda51a2c;hpb=3e054fe9efc64596534bbae0d1634ed15181d642;p=oota-llvm.git diff --git a/test/Transforms/Inline/invoke_test-2.ll b/test/Transforms/Inline/invoke_test-2.ll index b04f8abc34c..680a5ca2542 100644 --- a/test/Transforms/Inline/invoke_test-2.ll +++ b/test/Transforms/Inline/invoke_test-2.ll @@ -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: opt %s -inline -simplifycfg -S | \ +; 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(...)