blob: 0145935a1a785c0b486d54f31d9e403bcebc42bf [file] [log] [blame]
Dan Gohman2d65d352009-08-25 15:38:29 +00001; RUN: not llvm-as %s |& grep {not verify as correct}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002; PR1042
3
Tanya Lattner003eae52008-03-10 07:21:50 +00004define i32 @foo() {
5 br i1 false, label %L1, label %L2
6L1: ; preds = %0
7 %A = invoke i32 @foo( )
8 to label %L unwind label %L ; <i32> [#uses=1]
9L2: ; preds = %0
10 br label %L
11L: ; preds = %L2, %L1, %L1
12 ret i32 %A
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013}
Tanya Lattner003eae52008-03-10 07:21:50 +000014