3 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
4 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %p/Inputs/comdat-gc.s -o %t1
5 # RUN: echo "SECTIONS { .text : { *(.text*) } }" > %t.script
6 # RUN: ld.lld --gc-sections --script %t.script %t %t1 -o %t2
7 # RUN: llvm-readobj --sections --symbols %t2 | FileCheck -check-prefix=GC1 %s
9 # GC1: Name: .debug_line
11 .file 1 "test/ELF/linkerscript/comdat_gc.s"
12 .section .text._Z3fooIiEvv,"axG",@progbits,_Z3fooIiEvv,comdat