xref: /llvm-project/llvm/test/Transforms/SimplifyCFG/2005-10-02-InvokeSimplify.ll (revision 8979ae42769e529b0f6fce3268492ffb49bd54b9)
1; RUN: opt < %s -passes=simplifycfg -simplifycfg-require-and-preserve-domtree=1 -disable-output
2
3define i1 @foo() personality ptr @__gxx_personality_v0 {
4	%X = invoke i1 @foo( )
5			to label %N unwind label %F		; <i1> [#uses=1]
6F:		; preds = %0
7        %val = landingpad { ptr, i32 }
8                 catch ptr null
9	ret i1 false
10N:		; preds = %0
11	br i1 %X, label %A, label %B
12A:		; preds = %N
13	ret i1 true
14B:		; preds = %N
15	ret i1 true
16}
17
18declare i32 @__gxx_personality_v0(...)
19