blob: 9a72530187752a44f0ef30c5bca5658d900557d7 [file] [log] [blame]
Nick Lewycky490e7932008-03-16 07:55:46 +00001; RUN: not llvm-as < %s |& grep {multiple entries for the same basic block}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002
3
4
Nick Lewycky490e7932008-03-16 07:55:46 +00005define i32 @test(i32 %i, i32 %j, i1 %c) {
6 br i1 %c, label %A, label %A
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007A:
Nick Lewycky490e7932008-03-16 07:55:46 +00008 %a = phi i32 [%i, %0], [%j, %0] ; Error, different values from same block!
9 ret i32 %a
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010}