1 # UNSUPPORTED: system-aix
2 # RUN: rm -rf %t && mkdir -p %t/addlib/ && split-file %s %t
5 # RUN: yaml2obj %S/Inputs/elf.yaml -o %t/elf.o
6 # RUN: cp %t/elf.o %t/addlib/elf.o
7 # RUN: cp %t/elf.o %t/delete.o
9 # RUN: llvm-ar rc --thin addlib/thin.ar addlib/elf.o
10 # RUN: llvm-ar rc addlib/regular.ar addlib/elf.o
12 # RUN: llvm-ar -M < thin.script
13 # RUN: FileCheck -input-file=archive.ar %s --check-prefixes=THIN --implicit-check-not=delete.o --match-full-lines
17 # THIN-NEXT: addlib/elf.o/
19 # RUN: llvm-ar -M < thin-to-regular.script
20 # RUN: FileCheck -input-file=regular.ar %s --check-prefixes=REGULAR
24 # RUN: not llvm-ar -M < regular-to-thin.script 2>&1 | FileCheck %s --check-prefix=ERROR
26 # ERROR: error: script line 2: cannot add a regular archive's contents to a thin archive
37 #--- thin-to-regular.script
43 #--- regular-to-thin.script
45 addlib addlib/regular.ar