aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/SCCP/2008-03-10-sret.ll
blob: 284a5900c50715e72255da72c78f2ca1200e7c60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
; RUN: llvm-as < %s  | opt -ipsccp -disable-output

define internal {i32, i32} @bar(i32 %A) {
	%X = add i32 1, 2
	ret i32 %A, i32 %A
}

define i32 @foo() {
	%X = call {i32, i32} @bar(i32 17)
        %Y = getresult {i32, i32} %X, 0
	ret i32 %Y
}