18 lines · plain
1# REQUIRES: x862 3# RUN: llvm-mc -triple=x86_64-windows-msvc -filetype=obj -o %t.obj %s4# RUN: not lld-link /out:%t.exe /entry:main -notarealopt=ion /WX %t.obj 2>&1 | \5# RUN: FileCheck -check-prefix=ERROR %s6# RUN: not lld-link /out:%t.exe /entry:main -notarealopt=ion /WX:NO /WX %t.obj 2>&1 | \7# RUN: FileCheck -check-prefix=ERROR %s8# RUN: lld-link /out:%t.exe /entry:main -notarealopt=ion /WX /WX:NO %t.obj 2>&1 | \9# RUN: FileCheck -check-prefix=WARNING %s10 11# ERROR: error: ignoring unknown argument '-notarealopt=ion'12# WARNING: warning: ignoring unknown argument '-notarealopt=ion'13 14.text15.global main16main:17 ret18