blob: 427abe02cef70c02aee99ddbacdb5ca19be6c00a [file] [log] [blame]
Tanya Lattner003eae52008-03-10 07:21:50 +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 %A = invoke i32 @foo( )
6 to label %L unwind label %L ; <i32> [#uses=1]
7L: ; preds = %0, %0
8 ret i32 %A
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009}
Tanya Lattner003eae52008-03-10 07:21:50 +000010