1# REQUIRES: x86 2 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 8 9# GC1: Name: .debug_line 10 11.file 1 "test/ELF/linkerscript/comdat_gc.s" 12.section .text._Z3fooIiEvv,"axG",@progbits,_Z3fooIiEvv,comdat 13.loc 1 14 14 ret 15