xref: /llvm-project/lld/test/COFF/directives-unsupported.s (revision 9b15e9840f5073aa38939fbef1cb0c64dcc5f02f)
1# REQUIRES: x86
2
3# RUN: llvm-mc -triple=x86_64-windows %s -filetype=obj -o %t.obj
4
5# RUN: not lld-link -dll -out:%t.dll -entry:entry %t.obj -subsystem:console 2>&1 | FileCheck %s
6
7# CHECK: warning: ignoring unknown argument: -unknowndirectivename
8# CHECK: error: -unknowndirectivename is not allowed in .drectve ({{.*}}.obj)
9
10  .global entry
11  .text
12entry:
13  ret
14  .section .drectve
15  .ascii " -unknowndirectivename "
16