1# REQUIRES: x86
2
3# RUN: rm -rf %t.dir
4# RUN: mkdir -p %t.dir/build
5# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.dir/build/foo.o
6# RUN: echo "INPUT(\"%t.dir/build/foo.o\")" > %t.dir/build/foo.script
7# RUN: echo "INCLUDE \"%t.dir/build/bar.script\"" >> %t.dir/build/foo.script
8# RUN: echo "/* empty */" > %t.dir/build/bar.script
9# RUN: cd %t.dir
10# RUN: ld.lld build/foo.script -o /dev/null --reproduce repro.tar
11# RUN: tar tf repro.tar | FileCheck -DPATH='%:t.dir' %s
12
13# CHECK: [[PATH]]/build/foo.script
14# CHECK: [[PATH]]/build/foo.o
15# CHECK: [[PATH]]/build/bar.script
16
17.globl _start
18_start:
19  mov $60, %rax
20  mov $42, %rdi
21  syscall
22