summaryrefslogtreecommitdiff
path: root/test/Verifier/invoke-2.ll
blob: e544eed87ca2751c6980836cc68d871613bb2593 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
; RUN: llvm-upgrade < %s | not llvm-as -f |& grep {not verify as correct}
; PR1042

int %foo() {
        br bool false, label %L1, label %L2
L1:
        %A = invoke int %foo() to label %L unwind label %L

L2:
        br label %L
L:
        ret int %A
}