1 RUN: rm -rf %t && mkdir -p %t/foo %t/bar
3 RUN: yaml2obj %S/Inputs/elf.yaml -o %t/foo/elf.o
4 RUN: cp %t/foo/elf.o %t/bar/elf.o
7 Test a case in which CWD does not contain the archive, ensure replacement behaves as expected
9 RUN: llvm-ar cr --thin foo/lib.a foo/elf.o
10 RUN: llvm-ar t foo/lib.a | FileCheck %s --check-prefix=FOO --implicit-check-not {{.}}
12 RUN: llvm-ar cr --thin foo/lib.a bar/elf.o
13 RUN: llvm-ar t foo/lib.a | FileCheck %s --check-prefixes=FOO,BAR --implicit-check-not {{.}}
15 RUN: llvm-ar cr --thin foo/lib.a foo/elf.o
16 RUN: llvm-ar t foo/lib.a | FileCheck %s --check-prefixes=FOO,BAR --implicit-check-not {{.}}