[clang-tidy][modernize-use-starts-ends-with] Fix operator rewriting false negative...
[llvm-project.git] / lld / test / ELF / gc-sections-print.s
bloba822e9ef347935056fef4f7c4f21cd900a9b76e0
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
3 # RUN: ld.lld %t --gc-sections --print-gc-sections -o %t2 2>&1 | FileCheck -check-prefix=PRINT %s
5 # PRINT: removing unused section {{.*}}:(.text.x)
6 # PRINT-NEXT: removing unused section {{.*}}:(.text.y)
8 # RUN: ld.lld %t --gc-sections --print-gc-sections --no-print-gc-sections -o %t2 >& %t.log
9 # RUN: echo >> %t.log
10 # RUN: FileCheck -check-prefix=NOPRINT %s < %t.log
12 # NOPRINT-NOT: removing
14 .globl _start
15 .protected a, x, y
16 _start:
17 call a
19 .section .text.a,"ax",@progbits
21 nop
23 .section .text.x,"ax",@progbits
25 nop
27 .section .text.y,"ax",@progbits
29 nop