llvm-6502/test/Transforms/SCCP/2004-12-10-UndefBranchBug.ll
2006-12-02 04:23:10 +00:00

12 lines
254 B
LLVM

; RUN: llvm-upgrade < %s | llvm-as | opt -sccp | llvm-dis | grep 'ret int 1'
; This function definitely returns 1, even if we don't know the direction
; of the branch.
int %foo() {
br bool undef, label %T, label %T
T:
%X = add int 0, 1
ret int %X
}