Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / ELF / end-preserve.s
blobd25170605cb39e066faef89e440ddae9dd3fc74a
1 // REQUIRES: x86
2 // Should preserve the value of the "end" symbol if it is defined.
4 // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
5 // RUN: ld.lld %t.o -o %t
6 // RUN: llvm-nm %t | FileCheck %s
8 // CHECK: 0000000000000005 A end
10 .global _start,end
11 end = 5
12 .text
13 _start:
14 nop
15 .bss
16 .space 6