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
10 # RUN: FileCheck -check-prefix=NOPRINT %s < %t.log
12 # NOPRINT-NOT: removing
19 .section .text.a,"ax",@progbits
23 .section .text.x,"ax",@progbits
27 .section .text.y,"ax",@progbits