• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# REQUIRES: x86
2
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
8
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
11
12# CHECK: [[PATH]]/foo.a
13# CHECK: [[PATH]]/foo.o
14
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
17
18# CHECK2: [[PATH]]/foo.a
19# CHECK2: [[PATH]]/foo.o
20
21.globl _start
22_start:
23  nop
24