1 RUN: rm -rf %t && mkdir -p %t/addlib/
3 RUN: yaml2obj %S/Inputs/elf.yaml -o %t/elf.o
4 RUN: cp %t/elf.o %t/addlib/elf.o
5 RUN: cp %t/elf.o %t/delete.o
7 RUN: cd %t && llvm-ar rTc addlib/addlib.ar addlib/elf.o
9 RUN: echo "createthin %t/archive.ar" > %t/mri.script
10 RUN: echo "addmod elf.o" >> %t/mri.script
11 RUN: echo "addlib addlib/addlib.ar" >> %t/mri.script
12 RUN: echo "addmod delete.o" >> %t/mri.script
13 RUN: echo "delete delete.o" >> %t/mri.script
14 RUN: echo "save" >> %t/mri.script
15 RUN: echo "end" >> %t/mri.script
17 RUN: cd %t && llvm-ar -M < mri.script
18 RUN: FileCheck -input-file=%t/archive.ar %s
22 CHECK-NEXT: addlib/elf.o/