1# REQUIRES: x86
2# RUN: llvm-mc -triple=x86_64-windows-msvc -filetype=obj -o %t1.obj %s
3# RUN: llvm-mc -triple=x86_64-windows-msvc -filetype=obj -o %t2.obj %s
4
5# LLD should not error on relocations in DWARF debug sections against symbols in
6# discarded sections.
7# RUN: lld-link -entry:main -debug %t1.obj %t2.obj
8
9	.section	.text,"xr",discard,main
10	.globl	main
11main:
12f:
13	retq
14
15	.section	.debug_info,"dr"
16	.quad	f
17	.section	.eh_frame,"dr"
18	.quad	f
19