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

int %foo() {
   %A = invoke int %foo( )
        to label %L unwind label %L             ; <int> [#uses=1]

L: ; preds = %0, %0
   ret int %A
}