aboutsummaryrefslogtreecommitdiffstats
path: root/test/ExecutionEngine/2003-01-04-PhiTest.ll
blob: c8c76ee6e127e16ea01302bef1435a532f5c9d41 (plain)
1
2
3
4
5
6
7
8
9
10
11
; RUN: llvm-as -f %s -o %t.bc
; RUN: lli %t.bc > /dev/null

int %main() {
	br label %Loop
Loop:
	%X = phi int [0, %0], [1, %Loop]
	br bool true, label %Out, label %Loop
Out:
	ret int %X
}