llvm-6502/test/Verifier/AmbiguousPhi.ll

11 lines
205 B
LLVM
Raw Normal View History

; RUN: not llvm-as -f %s -o /dev/null
int "test"(int %i, int %j, bool %c) {
br bool %c, label %A, label %A
A:
%a = phi int [%i, %0], [%j, %0] ; Error, different values from same block!
ret int %a
}