[memprof] Remove an unused using directive (#117004)
[llvm-project.git] / lld / test / ELF / icf16.s
blob047acdcfc1f33e64acab38c514360e9865325078
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t1
3 # RUN: ld.lld -shared -z notext %t1 -o /dev/null --icf=all --print-icf-sections 2>&1 | FileCheck -allow-empty %s
5 ## ICF is able to merge sections which relocations referring regular input sections
6 ## or mergeable sections. .eh_frame is represented with a different kind of section,
7 ## here we check that ICF code is able to handle and will not merge sections which
8 ## relocations referring .eh_frame.
10 # CHECK-NOT: selected
12 .section ".eh_frame", "a", @unwind
13 .globl foo
14 foo:
15 .quad 0
16 .globl bar
17 bar:
18 .quad 0
20 .section .text.foo, "ax"
21 .quad foo
23 .section .text.bar, "ax"
24 .quad bar