summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/Generic/2004-02-08-UnwindSupport.ll
blob: 10d40693d8e5684785e0cffc0bcc67da174ccfc1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
; RUN: llvm-as < %s | llc -enable-correct-eh-support

define i32 @test() {
        unwind
}

define i32 @main() {
        %X = invoke i32 @test( )
                        to label %cont unwind label %EH         ; <i32> [#uses=0]

cont:           ; preds = %0
        ret i32 1

EH:             ; preds = %0
        ret i32 0
}

OpenPOWER on IntegriCloud