[clang-tidy][modernize-use-starts-ends-with] Fix operator rewriting false negative...
[llvm-project.git] / lld / test / ELF / icf14.s
blobcaa33e4d14bcdf4941a16ac1c0e7a84eaaac5151
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 # refer to symbols that live in sections of the different types
8 # (regular input section and mergeable input sections in this case).
10 # CHECK-NOT: selected
12 .section .text
13 .globl _start
14 _start:
15 ret
17 .section .rodata.str,"aMS",@progbits,1
18 .globl rodata
19 rodata:
20 .asciz "foo"
22 .section .text.foo, "ax"
23 .quad rodata
25 .section .text.bar, "ax"
26 .quad _start