[llvm] Do not replace dead constant references in metadata with undef
[llvm-project.git] / lld / test / ELF / incompatible-section-types2.s
blob3e281ce6c5da383b4f53b2d07a30fb14f19f0521
1 // REQUIRES: x86
2 // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
3 // RUN: not ld.lld %t.o -o /dev/null 2>&1 | FileCheck %s
5 // CHECK: error: section type mismatch for .shstrtab
6 // CHECK-NEXT: >>> <internal>:(.shstrtab): SHT_STRTAB
7 // CHECK-NEXT: >>> output section .shstrtab: Unknown
9 .section .shstrtab,"",@12345
10 .short 20