llvm/test/Linker/only-needed-recurse.ll
Rafael Espindola 8b7f4165b2 Fix recursive -only-needed.
We were assuming that only linkonce_odr GVs were lazy linked.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@266995 91177308-0d34-0410-b5e6-96231b3b80d8
2016-04-21 14:56:33 +00:00

12 lines
183 B
LLVM

; RUN: llvm-link -S -only-needed %s %p/Inputs/only-needed-recurse.ll | FileCheck %s
declare void @f2()
define void @f1() {
call void @f2()
ret void
}
; CHECK: define void @f3