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