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