1 RUN: yaml2obj %S/Inputs/add-lib1.yaml -o %t-add-lib1.o
2 RUN: yaml2obj %S/Inputs/add-lib2.yaml -o %t-add-lib2.o
3 RUN: yaml2obj %S/Inputs/add-lib2.yaml -o %t-add-lib3.o
6 RUN: llvm-ar crs %t.ar %t-add-lib1.o
7 RUN: llvm-ar cqs %t.ar %t-add-lib2.o
9 RUN: llvm-ar tv %t.ar | FileCheck %s --check-prefix=CHECK-NAMES-NO-ADDLIB
10 CHECK-NAMES-NO-ADDLIB: add-library.test.tmp-add-lib1.o
11 CHECK-NAMES-NO-ADDLIB: add-library.test.tmp-add-lib2.o
13 RUN: llvm-nm %t.ar | FileCheck %s --check-prefix=CHECK-SYMBOLS-NO-ADDLIB
14 CHECK-SYMBOLS-NO-ADDLIB: add-lib1
15 CHECK-SYMBOLS-NO-ADDLIB: add-lib2
18 RUN: llvm-ar crs %t1.ar %t-add-lib3.o
19 RUN: llvm-ar cqLs %t1.ar %t.ar
21 RUN: llvm-ar tv %t1.ar | FileCheck %s --check-prefix=CHECK-NAMES-ADDLIB
22 CHECK-NAMES-ADDLIB: add-library.test.tmp-add-lib3.o
23 CHECK-NAMES-ADDLIB: add-library.test.tmp-add-lib1.o
24 CHECK-NAMES-ADDLIB: add-library.test.tmp-add-lib2.o
26 RUN: llvm-nm %t1.ar | FileCheck %s --check-prefix=CHECK-SYMBOLS-ADDLIB
27 CHECK-SYMBOLS-ADDLIB: add-lib3
28 CHECK-SYMBOLS-ADDLIB: add-lib1
29 CHECK-SYMBOLS-ADDLIB: add-lib2
31 RUN: llvm-ar cqLs %t1.ar %t-add-lib1.o
33 RUN: llvm-ar tv %t1.ar | FileCheck %s --check-prefix=CHECK-NAMES-DUPLICATE
34 CHECK-NAMES-DUPLICATE: add-library.test.tmp-add-lib3.o
35 CHECK-NAMES-DUPLICATE: add-library.test.tmp-add-lib1.o
36 CHECK-NAMES-DUPLICATE: add-library.test.tmp-add-lib2.o
37 CHECK-NAMES-DUPLICATE: add-library.test.tmp-add-lib1.o
39 RUN: llvm-nm %t1.ar | FileCheck %s --check-prefix=CHECK-SYMBOLS-DUPLICATE
40 CHECK-SYMBOLS-DUPLICATE: add-lib3
41 CHECK-SYMBOLS-DUPLICATE: add-lib1
42 CHECK-SYMBOLS-DUPLICATE: add-lib2
43 CHECK-SYMBOLS-DUPLICATE: add-lib1