aboutsummaryrefslogtreecommitdiff
path: root/test/Transforms/Inline/inline_constprop.ll
blob: d76a88be37f524eaecb33ce57bb5719a8fc463fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
; RUN: llvm-upgrade < %s | llvm-as | opt -inline -disable-output &&
; RUN: llvm-upgrade < %s | llvm-as | opt -inline | llvm-dis | not grep callee &&
; RUN: llvm-upgrade < %s | llvm-as | opt -inline | llvm-dis | not grep div

implementation

internal int %callee(int %A, int %B) {
	%C = div int %A, %B
	ret int %C
}

int %test() {
	%X = call int %callee(int 10, int 3)
	ret int %X
}