• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; runtime library implementations should be added to llvm.compiler.used
2; RUN: llvm-as <%s >%t1
3; RUN: llvm-lto -o %t2 %t1
4; RUN: llvm-nm -no-sort %t2 | FileCheck %s -check-prefix=KEEP -check-prefix=LOSE
5
6target triple = "x86_64-apple-darwin9"
7
8; KEEP-LABEL: _puts
9define void @puts() {
10  ret void
11}
12
13; KEEP-LABEL: ___divti3
14define void @__divti3() {
15  ret void
16}
17
18; KEEP-LABEL: _memset
19define void @memset() {
20  ret void
21}
22
23; LOSE-NOT: _myprintf
24define void @myprintf() {
25  ret void
26}
27
28