llvm-project
20 строк · 514.0 Байт
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-apple-macos %s -o %t.dir/foo.o
6# RUN: cd %t.dir
7# RUN: llvm-ar rcsT foo.a foo.o
8
9# RUN: %lld foo.a -o /dev/null --reproduce repro.tar
10# RUN: tar tf repro.tar | FileCheck -DPATH='repro/%:t.dir' %s
11
12# RUN: %lld -all_load foo.a -o /dev/null --reproduce repro2.tar
13# RUN: tar tf repro2.tar | FileCheck -DPATH='repro2/%:t.dir' %s
14
15# CHECK-DAG: [[PATH]]/foo.a
16# CHECK-DAG: [[PATH]]/foo.o
17
18.globl _main
19_main:
20nop
21