[llvm] Do not replace dead constant references in metadata with undef
[llvm-project.git] / lld / test / ELF / version-symbol-error.s
blobf916fe7b34f85b0930e800a4993b0612debf1a9c
1 // REQUIRES: x86
2 // RUN: llvm-mc %s -o %t.o -filetype=obj -triple=x86_64-pc-linux
3 // RUN: echo "V1 {};" > %t.script
4 // RUN: not ld.lld -shared -version-script=%t.script %t.o -o /dev/null 2>&1 \
5 // RUN: | FileCheck %s
7 // CHECK: .o: symbol foo@V2 has undefined version V2
9 .globl foo@V2
10 .text
11 foo@V2:
12 ret