mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
a9d8d647ca
llvm-svn: 49971
21 lines
423 B
LLVM
21 lines
423 B
LLVM
; RUN: llvm-as < %s | opt -prune-eh | llvm-dis | not grep invoke
|
|
|
|
define internal i32 @foo() {
|
|
invoke i32 @foo( )
|
|
to label %Normal unwind label %Except ; <i32>:1 [#uses=0]
|
|
Normal: ; preds = %0
|
|
ret i32 12
|
|
Except: ; preds = %0
|
|
ret i32 123
|
|
}
|
|
|
|
define i32 @caller() {
|
|
invoke i32 @foo( )
|
|
to label %Normal unwind label %Except ; <i32>:1 [#uses=0]
|
|
Normal: ; preds = %0
|
|
ret i32 0
|
|
Except: ; preds = %0
|
|
ret i32 1
|
|
}
|
|
|