2017-10-25 05:19:22 +08:00
|
|
|
# REQUIRES: x86
|
|
|
|
|
|
|
|
# RUN: llvm-mc -triple=x86_64-windows-msvc -filetype=obj -o %t.obj %s
|
2019-07-05 20:31:32 +08:00
|
|
|
# RUN: not lld-link /out:%t.exe /entry:main -notarealopt=ion /WX %t.obj 2>&1 | \
|
2017-10-25 05:19:22 +08:00
|
|
|
# RUN: FileCheck -check-prefix=ERROR %s
|
2019-07-05 20:31:32 +08:00
|
|
|
# RUN: not lld-link /out:%t.exe /entry:main -notarealopt=ion /WX:NO /WX %t.obj 2>&1 | \
|
2017-10-25 05:19:22 +08:00
|
|
|
# RUN: FileCheck -check-prefix=ERROR %s
|
2019-07-05 20:31:32 +08:00
|
|
|
# RUN: lld-link /out:%t.exe /entry:main -notarealopt=ion /WX /WX:NO %t.obj 2>&1 | \
|
2017-10-25 05:19:22 +08:00
|
|
|
# RUN: FileCheck -check-prefix=WARNING %s
|
|
|
|
|
2019-07-05 20:31:32 +08:00
|
|
|
# ERROR: error: ignoring unknown argument '-notarealopt=ion'
|
|
|
|
# WARNING: warning: ignoring unknown argument '-notarealopt=ion'
|
2017-10-25 05:19:22 +08:00
|
|
|
|
|
|
|
.text
|
|
|
|
.global main
|
|
|
|
main:
|
|
|
|
ret
|