5 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.dir/foo.o
7 # RUN: llvm-ar --format=gnu rcT foo.a foo.o
9 # RUN: ld.lld -m elf_x86_64 foo.a -o /dev/null --reproduce repro.tar
10 # RUN: tar tf repro.tar | FileCheck -DPATH='repro/%:t.dir' %s
12 # CHECK: [[PATH]]/foo.a
13 # CHECK: [[PATH]]/foo.o
15 # RUN: ld.lld -m elf_x86_64 --whole-archive foo.a -o /dev/null --reproduce repro2.tar
16 # RUN: tar tf repro2.tar | FileCheck -DPATH='repro2/%:t.dir' --check-prefix=CHECK2 %s
18 # CHECK2: [[PATH]]/foo.a
19 # CHECK2: [[PATH]]/foo.o