summaryrefslogtreecommitdiffstats
path: root/lld/test/COFF/pending-comdat.s
blob: b10dce1f1ea4effa069235849ea22886aeb60973 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# REQUIRES: x86

# RUN: llvm-mc -triple=x86_64-windows-gnu %s -filetype=obj -o %t.obj

# RUN: not lld-link -lldmingw -out:%t.exe -entry:main -subsystem:console %t.obj 2>&1 | FileCheck %s

# CHECK: error: undefined symbol: other

# Check that the comdat section without a symbol isn't left pending once we iterate symbols
# to print source of the undefined symbol.

	.text
	.globl main
main:
	call other
	ret

	.section	.data$pending,"w"
	.linkonce	discard
.Llocal:
	.byte	0
OpenPOWER on IntegriCloud