aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/tools/llvm-link/archive.test
blob: acf9f346e5caf2240dc44ecc0d01106e18bacd74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# RUN: llvm-as %S/Inputs/f.ll -o %t.f.bc
# RUN: llvm-as %S/Inputs/g.ll -o %t.g.bc
# RUN: llvm-ar cr %t.fg.a %t.f.bc %t.g.bc
# RUN: llvm-ar cr --format=gnu %t.empty.lib
# RUN: llvm-link %S/Inputs/h.ll %t.fg.a %t.empty.lib -o %t.linked.bc

# RUN: llvm-nm %t.linked.bc | FileCheck %s

# RUN: rm -f %t.f.bc
# RUN: rm -f %t.g.bc
# RUN: rm -f %t.fg.a
# RUN: rm -f %t.empty.a
# RUN: rm -f %t.linked.bc

# CHECK: -------- T f
# CHECK: -------- T g
# CHECK: -------- T h