[ELF] relocateNonAlloc: clean up workaround code
[llvm-project.git] / lld / test / COFF / pending-comdat.s
blobb10dce1f1ea4effa069235849ea22886aeb60973
1 # REQUIRES: x86
3 # RUN: llvm-mc -triple=x86_64-windows-gnu %s -filetype=obj -o %t.obj
5 # RUN: not lld-link -lldmingw -out:%t.exe -entry:main -subsystem:console %t.obj 2>&1 | FileCheck %s
7 # CHECK: error: undefined symbol: other
9 # Check that the comdat section without a symbol isn't left pending once we iterate symbols
10 # to print source of the undefined symbol.
12 .text
13 .globl main
14 main:
15 call other
16 ret
18 .section .data$pending,"w"
19 .linkonce discard
20 .Llocal:
21 .byte 0