mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-02 08:26:29 +00:00
9e863883e1
llvm-svn: 359383
28 lines
488 B
LLVM
28 lines
488 B
LLVM
; runtime library implementations should be added to llvm.compiler.used
|
|
; RUN: llvm-as <%s >%t1
|
|
; RUN: llvm-lto -o %t2 %t1
|
|
; RUN: llvm-nm --no-sort %t2 | FileCheck %s -check-prefix=KEEP -check-prefix=LOSE
|
|
|
|
target triple = "x86_64-apple-darwin9"
|
|
|
|
; KEEP-LABEL: _puts
|
|
define void @puts() {
|
|
ret void
|
|
}
|
|
|
|
; KEEP-LABEL: ___divti3
|
|
define void @__divti3() {
|
|
ret void
|
|
}
|
|
|
|
; KEEP-LABEL: _memset
|
|
define void @memset() {
|
|
ret void
|
|
}
|
|
|
|
; LOSE-NOT: _myprintf
|
|
define void @myprintf() {
|
|
ret void
|
|
}
|
|
|