1# REQUIRES: x86
2
3# RUN: llvm-mc -triple=x86_64-windows-gnu %s -filetype=obj -o %t.obj
4
5# RUN: not lld-link -lldmingw -out:%t.exe -entry:main -subsystem:console %t.obj 2>&1 | FileCheck %s
6
7# CHECK: error: undefined symbol: other
8
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.
11
12	.text
13	.globl main
14main:
15	call other
16	ret
17
18	.section	.data$pending,"w"
19	.linkonce	discard
20.Llocal:
21	.byte	0
22