[clang-tidy][modernize-use-starts-ends-with] Fix operator rewriting false negative...
[llvm-project.git] / lld / test / ELF / reproduce-thin-archive.s
blob6c33ac22515a43afadcbaf15d20945b253ca4a29
1 # REQUIRES: x86
3 # RUN: rm -rf %t.dir
4 # RUN: mkdir -p %t.dir
5 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.dir/foo.o
6 # RUN: cd %t.dir
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
21 .globl _start
22 _start:
23 nop