[llvm] Do not replace dead constant references in metadata with undef
[llvm-project.git] / lld / test / ELF / linkorder-err.s
blob85409ecfc9ef222a0ddc17b456875e87f74dbd9c
1 # REQUIRES: x86
3 # RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t.o
4 # RUN: not ld.lld %t.o -o /dev/null 2>&1 | FileCheck %s
6 # CHECK: error: a section .foo with SHF_LINK_ORDER should not refer a non-regular section: {{.*}}.o:(.merge)
8 .section .merge,"aM",@progbits,8
9 .quad 0
10 .section .foo,"ao",@progbits,.merge
11 .quad 0