Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / ELF / linkerscript / sections-gc.s
blob10ff929132c256f2f11f91ef6fc1b0888e00ca10
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
3 # RUN: echo "SECTIONS { .text : { *(.text*) } }" > %t.script
4 # RUN: ld.lld %t --gc-sections --script %t.script -o %t1
5 # RUN: llvm-objdump --section-headers %t1 | FileCheck %s
7 # CHECK: Sections:
8 # CHECK-NEXT: Name Size
9 # CHECK: .text 00000001
11 .section .text.foo, "ax"
12 .global _start
13 _start:
14 nop
16 .section .text.bar, "ax"
17 .global bar
18 bar:
19 nop