[llvm] Do not replace dead constant references in metadata with undef
[llvm-project.git] / lld / test / ELF / linkerscript / comdat-gc.s
blob2d225a4d8a946cb4c7e85f0e4b8956965fcbb2c5
1 # REQUIRES: x86
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
13 .loc 1 14
14 ret