Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / MachO / reproduce-thin-archives.s
blob9dee3f400e06abdd8bc7a2545e87048ecb3ef57e
1 # REQUIRES: x86
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
9 # RUN: %lld foo.a -o /dev/null --reproduce repro.tar
10 # RUN: tar tf repro.tar | FileCheck -DPATH='repro/%:t.dir' %s
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
15 # CHECK-DAG: [[PATH]]/foo.a
16 # CHECK-DAG: [[PATH]]/foo.o
18 .globl _main
19 _main:
20 nop