xref: /llvm-project/llvm/test/Transforms/SimplifyCFG/2007-11-22-InvokeNoUnwind.ll (revision 8979ae42769e529b0f6fce3268492ffb49bd54b9)
1; RUN: opt < %s -passes=simplifycfg -simplifycfg-require-and-preserve-domtree=1 -S | FileCheck %s
2
3; CHECK-NOT: invoke
4
5declare i32 @func(ptr) nounwind
6
7define i32 @test() personality ptr @__gxx_personality_v0 {
8	invoke i32 @func( ptr null )
9			to label %Cont unwind label %Other		; <i32>:1 [#uses=0]
10
11Cont:		; preds = %0
12	ret i32 0
13
14Other:		; preds = %0
15	landingpad { ptr, i32 }
16		catch ptr null
17	ret i32 1
18}
19
20declare i32 @__gxx_personality_v0(...)
21