Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / ELF / gc-sections-linkorder2.s
blob2024972b3937e47745f9155a74dd689b81fa4286
1 # REQUIRES: x86
3 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
4 # RUN: ld.lld --gc-sections --print-gc-sections %t.o -o /dev/null | count 0
6 .globl _start
7 _start:
8 .quad .foo
10 ## .foo is retained, so sections linking to it are retained as well.
11 .section .foo,"a"
12 .quad 0
13 .section .bar,"ao",@progbits,.foo
14 .quad 0
15 .section .zed,"ao",@progbits,.foo
16 .quad 0
18 .section .nonalloc
19 .quad 0
21 .section .nonalloc_linkorder,"o",@progbits,.nonalloc
22 .quad 0