[llvm] Do not replace dead constant references in metadata with undef
[llvm-project.git] / lld / test / ELF / comment-gc.s
blob44c08fe9cef9ac08aabb4e0c4d8b6cdeed72d9ba
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
3 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %p/Inputs/comment-gc.s -o %t2.o
4 # RUN: ld.lld %t.o %t2.o -o %t1 --gc-sections -shared
5 # RUN: llvm-objdump -s %t1 | FileCheck %s
7 # CHECK: Contents of section .comment:
8 # CHECK-NEXT: foo..LLD 1.0.bar
10 .ident "foo"
12 .globl _start
13 _start:
14 nop