Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / ELF / icf12.s
blobaa1e8af9ebd6ce829bc78f91239bd3fc4f9bf155
1 # REQUIRES: x86
3 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t1
4 # RUN: ld.lld %t1 -o /dev/null --icf=all --print-icf-sections 2>&1 | FileCheck -allow-empty %s
6 # Check that ICF does not merge 2 sections which relocations
7 # differs in addend only.
9 # CHECK-NOT: selected
11 .section .text
12 .globl _start
13 _start:
14 ret
16 .section .text.foo, "ax"
17 .quad _start + 1
19 .section .text.bar, "ax"
20 .quad _start + 2