[llvm] Do not replace dead constant references in metadata with undef
[llvm-project.git] / lld / test / ELF / deplibs-corrupt.s
blobb17987f1479675affea63c681b233ae9bf857978
1 # REQUIRES: x86
3 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
4 # RUN: not ld.lld %t.o -o /dev/null -L %t.dir 2>&1 | FileCheck %s -DOBJ=%t.o
5 # CHECK: error: [[OBJ]]: corrupted dependent libraries section (unterminated string): .deplibs
7 .section ".deplibs","MS",@llvm_dependent_libraries,1
8 .ascii ":foo.a"