1# REQUIRES: x86
2
3# RUN: rm -rf %t.dir
4# RUN: mkdir -p %t.dir
5# RUN: cd %t.dir
6# RUN: echo ".global foo; foo: ret" | \
7# RUN:   llvm-mc -filetype=obj -triple=x86_64 - -o foo.o
8# RUN: llvm-ar rc foo.a foo.o
9# RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o bar.o
10
11# RUN: ld.lld bar.o -o /dev/null --reproduce repro.tar
12# RUN: tar tf repro.tar | FileCheck -DPATH='%:t.dir' %s
13
14# CHECK: [[PATH]]/foo.a
15
16.globl _start
17_start:
18  call foo
19.section ".deplibs","MS",@llvm_dependent_libraries,1
20.asciz "foo.a"
21