summaryrefslogtreecommitdiff
path: root/test/Transforms/SCCP/2004-12-10-UndefBranchBug.ll
blob: 9d08137df19da9ec22fbbacdb292a2c9f26870aa (plain)
1
2
3
4
5
6
7
8
9
10
11
; 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
}