Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / ExecutionEngine / JITLink / x86-64 / MachO_archive_load_hidden_expect_success.s
blob497dd30d80714e00491393bbf8d9dbff575e1537
1 # RUN: rm -rf %t && mkdir -p %t
2 # RUN: llvm-mc -triple x86_64-apple-macosx10.9 -filetype=obj \
3 # RUN: -o %t/MachO_extra_def_strong.o %S/Inputs/MachO_extra_def_strong.s
4 # RUN: llvm-ar crs %t/libExtraDef.a %t/MachO_extra_def_strong.o
5 # RUN: llvm-mc -triple x86_64-apple-macosx10.9 -filetype=obj \
6 # RUN: -o %t/MachO_archive_load_hidden_support.o %s
7 # RUN: llvm-jitlink -noexec %t/MachO_archive_load_hidden_support.o \
8 # RUN: -L%t -hidden-lExtraDef
9 # RUN: llvm-jitlink -noexec %t/MachO_archive_load_hidden_support.o \
10 # RUN: -load_hidden %t/libExtraDef.a
12 # Expect this test to succeed -- ExtraDef should be hidden, but visible to
13 # ExtraDefRef as they're linked in the same JITDylib. This tests that we're
14 # correctly handling the change in object interface when linking ExtraDef.
16 .section __TEXT,__text,regular,pure_instructions
18 .globl _main
19 .p2align 4, 0x90
20 _main:
21 retq
23 .section __DATA,__data
24 .globl ExtraDefRef
25 .p2align 3
26 ExtraDefRef:
27 .quad ExtraDef
29 .subsections_via_symbols