mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-16 22:06:36 +00:00

This is a small QoL improvement suggested by FrancescElies in https://github.com/llvm/llvm-project/issues/56300#issuecomment-1172104966. Differential Revision: https://reviews.llvm.org/D149022
16 lines
418 B
ArmAsm
16 lines
418 B
ArmAsm
# REQUIRES: x86
|
|
|
|
# RUN: llvm-mc -triple=x86_64-windows %s -filetype=obj -o %t.obj
|
|
|
|
# RUN: not lld-link -dll -out:%t.dll -entry:entry %t.obj -subsystem:console 2>&1 | FileCheck %s
|
|
|
|
# CHECK: warning: ignoring unknown argument: -unknowndirectivename
|
|
# CHECK: error: -unknowndirectivename is not allowed in .drectve ({{.*}}.obj)
|
|
|
|
.global entry
|
|
.text
|
|
entry:
|
|
ret
|
|
.section .drectve
|
|
.ascii " -unknowndirectivename "
|