summaryrefslogtreecommitdiff
path: root/test/LTO/runtime-library.ll
blob: 76fc6f0cc47b26d81a07861b277afd46c6aef179 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
; 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
}