2016-05-02 21:54:10 +08:00
|
|
|
# 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
|
2016-05-02 23:16:43 +08:00
|
|
|
# RUN: llvm-ar --format=gnu rcT foo.a foo.o
|
2016-05-02 21:54:10 +08:00
|
|
|
# RUN: ld.lld -m elf_x86_64 foo.a -o bar --reproduce repro
|
2016-05-04 01:30:44 +08:00
|
|
|
# RUN: cpio -id < repro.cpio
|
2016-05-02 21:54:10 +08:00
|
|
|
# RUN: diff foo.a repro/%:t.dir/foo.a
|
|
|
|
# RUN: diff foo.o repro/%:t.dir/foo.o
|
|
|
|
|
|
|
|
.globl _start
|
|
|
|
_start:
|
|
|
|
nop
|