diff options
Diffstat (limited to 'llvm/test/Transforms/SimplifyCFG/invoke_unwind.ll')
-rw-r--r-- | llvm/test/Transforms/SimplifyCFG/invoke_unwind.ll | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/llvm/test/Transforms/SimplifyCFG/invoke_unwind.ll b/llvm/test/Transforms/SimplifyCFG/invoke_unwind.ll index 3b4c09d96f7..100bfd4e9e3 100644 --- a/llvm/test/Transforms/SimplifyCFG/invoke_unwind.ll +++ b/llvm/test/Transforms/SimplifyCFG/invoke_unwind.ll @@ -17,4 +17,17 @@ Rethrow: resume { i8*, i32 } %exn } +define i32 @test2() personality i32 (...)* @__gxx_personality_v0 { +; CHECK-LABEL: @test2( +; CHECK-NEXT: call void @bar() [ "foo"(i32 100) ] +; CHECK-NEXT: ret i32 0 + invoke void @bar( ) [ "foo"(i32 100) ] + to label %1 unwind label %Rethrow + ret i32 0 +Rethrow: + %exn = landingpad {i8*, i32} + catch i8* null + resume { i8*, i32 } %exn +} + declare i32 @__gxx_personality_v0(...) |