Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / COFF / autoimport-list-ptrs.s
blob7606e14b634a4e251f842a269e4b1b9ffb7b5ec0
1 # REQUIRES: x86
3 # RUN: llvm-mc -triple=x86_64-windows-gnu %s -filetype=obj -o %t.obj
4 # RUN: lld-link -lldmingw -out:%t.exe -entry:main %t.obj -verbose
6 # RUN: llvm-objdump -s %t.exe | FileCheck --check-prefix=CONTENTS %s
8 # Even if we didn't actually write any pseudo relocations,
9 # check that the synthetic pointers still are set to a non-null value
10 # CONTENTS: Contents of section .data:
11 # CONTENTS: 140003000 00200040 01000000 00200040 01000000
13 .global main
14 .text
15 main:
16 retq
17 .data
18 relocs:
19 .quad __RUNTIME_PSEUDO_RELOC_LIST__
20 .quad __RUNTIME_PSEUDO_RELOC_LIST_END__