summaryrefslogtreecommitdiff
path: root/test/Transforms/SCCP/2004-11-16-DeadInvoke.ll
blob: 544edc0b3c53011c0894f5a169b24e1d09ace696 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
; RUN: llvm-upgrade < %s | llvm-as | opt -sccp -disable-output

implementation

declare int %foo()

void %caller() {
	br bool true, label %T, label %F
F:
	%X = invoke int %foo() to label %T unwind label %T

T:
	ret void
}