summaryrefslogtreecommitdiffstats
path: root/test/Transforms/CodeExtractor/2004-11-12-InvokeExtract.ll
blob: 8cd6094826681d74f417ec37c822a50fff683a74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
; RUN: llvm-as < %s | opt -extract-blocks -disable-output
define i32 @foo() {
        br label %EB

EB:             ; preds = %0
        %V = invoke i32 @foo( )
                        to label %Cont unwind label %Unw                ; <i32> [#uses=1]

Cont:           ; preds = %EB
        ret i32 %V

Unw:            ; preds = %EB
        unwind
}

OpenPOWER on IntegriCloud