diff options
Diffstat (limited to 'lld/test/COFF/inferasanlibs-drectve.s')
-rw-r--r-- | lld/test/COFF/inferasanlibs-drectve.s | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lld/test/COFF/inferasanlibs-drectve.s b/lld/test/COFF/inferasanlibs-drectve.s new file mode 100644 index 000000000000..8406658cea38 --- /dev/null +++ b/lld/test/COFF/inferasanlibs-drectve.s @@ -0,0 +1,16 @@ +# REQUIRES: x86 + +# RUN: llvm-mc -triple=x86_64-windows %s -filetype=obj -o %t.obj + +# RUN: lld-link -dll -out:%t.dll -entry:entry %t.obj -subsystem:console 2>&1 | FileCheck --allow-empty --ignore-case %s + +# CHECK-NOT: ignoring unknown argument +# CHECK-NOT: inferasanlibs +# CHECK-NOT: is not allowed in .drectve + + .global entry + .text +entry: + ret + .section .drectve + .ascii " /INFERASANLIBS " |