1# REQUIRES: x86 2# RUN: llvm-mc -triple=x86_64-windows-msvc -filetype=obj -o %t.obj %s 3# RUN: not lld-link -entry:__ImageBase -subsystem:console %t.obj 2>&1 | FileCheck %s 4 5.text 6# CHECK: error: relocation against symbol in discarded section: .drectve 7.quad .Ldrectve 8 9.section .drectve 10.Ldrectve: 11