diff options
Diffstat (limited to 'test/ELF/reproduce-thin-archive.s')
-rw-r--r-- | test/ELF/reproduce-thin-archive.s | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/ELF/reproduce-thin-archive.s b/test/ELF/reproduce-thin-archive.s new file mode 100644 index 000000000000..0797b6c67e9c --- /dev/null +++ b/test/ELF/reproduce-thin-archive.s @@ -0,0 +1,15 @@ +# REQUIRES: x86, shell + +# RUN: rm -rf %t.dir +# RUN: mkdir -p %t.dir +# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.dir/foo.o +# RUN: cd %t.dir +# RUN: llvm-ar --format=gnu rcT foo.a foo.o +# RUN: ld.lld -m elf_x86_64 foo.a -o bar --reproduce repro +# RUN: cpio -id < repro.cpio +# RUN: diff foo.a repro/%:t.dir/foo.a +# RUN: diff foo.o repro/%:t.dir/foo.o + +.globl _start +_start: + nop |