blob: 3a470edc261c0d7a462c123cb37b6a9bb8fe841c [file] [log] [blame]
# REQUIRES: x86
# RUN: llvm-mc -triple=x86_64-windows-msvc -filetype=obj -o %t.obj %s
# RUN: not lld-link /out:%t.exe /entry:main -notarealoption /WX %t.obj 2>&1 | \
# RUN: FileCheck -check-prefix=ERROR %s
# RUN: not lld-link /out:%t.exe /entry:main -notarealoption /WX:NO /WX %t.obj 2>&1 | \
# RUN: FileCheck -check-prefix=ERROR %s
# RUN: lld-link /out:%t.exe /entry:main -notarealoption /WX /WX:NO %t.obj 2>&1 | \
# RUN: FileCheck -check-prefix=WARNING %s
# ERROR: error: ignoring unknown argument: -notarealoption
# WARNING: warning: ignoring unknown argument: -notarealoption
.text
.global main
main:
ret