mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-24 22:32:47 +00:00
2aabd0722d
Upgrade to use new Tcl exec based test harness. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36062 91177308-0d34-0410-b5e6-96231b3b80d8
27 lines
479 B
LLVM
27 lines
479 B
LLVM
; This checks to ensure that the inline pass deletes functions if they get
|
|
; inlined into all of their callers.
|
|
|
|
; RUN: llvm-upgrade < %s | llvm-as | opt -inline | llvm-dis | \
|
|
; RUN: not grep %reallysmall
|
|
|
|
implementation
|
|
|
|
internal int %reallysmall(int %A) {
|
|
ret int %A
|
|
}
|
|
|
|
void %caller1() {
|
|
call int %reallysmall(int 5)
|
|
ret void
|
|
}
|
|
|
|
void %caller2(int %A) {
|
|
call int %reallysmall(int %A)
|
|
ret void
|
|
}
|
|
|
|
int %caller3(int %A) {
|
|
%B = call int %reallysmall(int %A)
|
|
ret int %B
|
|
}
|