Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / ELF / icf15.s
blob5c651fbd65ff75f5b445144beb2067ec6a33e6a3
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t1
3 # RUN: ld.lld %t1 -o /dev/null --icf=all --print-icf-sections 2>&1 | FileCheck -allow-empty %s
5 ## Check that ICF does not merge sections which relocations have equal addends,
6 ## but different target values.
8 # CHECK-NOT: selected
10 .globl und
12 .section .text
13 .globl foo
14 foo:
15 .byte 0
16 .globl bar
17 bar:
18 .byte 0
20 .section .text.foo, "ax"
21 .quad foo
23 .section .text.bar, "ax"
24 .quad bar