• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: opt < %s -prune-eh -S | not grep invoke
2
3define internal i32 @foo() {
4	invoke i32 @foo( )
5			to label %Normal unwind label %Except		; <i32>:1 [#uses=0]
6Normal:		; preds = %0
7	ret i32 12
8Except:		; preds = %0
9	ret i32 123
10}
11
12define i32 @caller() {
13	invoke i32 @foo( )
14			to label %Normal unwind label %Except		; <i32>:1 [#uses=0]
15Normal:		; preds = %0
16	ret i32 0
17Except:		; preds = %0
18	ret i32 1
19}
20
21