blob: f31bc107accf4945cbab07c68b9764cf887a5ef1 [file] [log] [blame]
Chandler Carruth49589f02012-07-02 18:37:59 +00001; RUN: not llvm-as < %s 2>&1 | grep "multiple entries for the same basic block"
Tanya Lattner2393a242004-11-06 23:08:26 +00002
Chris Lattner23e07e72002-06-08 17:33:16 +00003
4
Nick Lewycky3f637852008-03-16 07:55:46 +00005define i32 @test(i32 %i, i32 %j, i1 %c) {
6 br i1 %c, label %A, label %A
Chris Lattner23e07e72002-06-08 17:33:16 +00007A:
Nick Lewycky3f637852008-03-16 07:55:46 +00008 %a = phi i32 [%i, %0], [%j, %0] ; Error, different values from same block!
9 ret i32 %a
Chris Lattner23e07e72002-06-08 17:33:16 +000010}