zig/deps/lld/test/COFF/wx.s

18 lines
626 B
ArmAsm
Raw Normal View History

2018-01-18 06:29:21 +08:00
# REQUIRES: x86
# RUN: llvm-mc -triple=x86_64-windows-msvc -filetype=obj -o %t.obj %s
2019-08-04 00:43:55 +08:00
# RUN: not lld-link /out:%t.exe /entry:main -notarealopt=ion /WX %t.obj 2>&1 | \
2018-01-18 06:29:21 +08:00
# RUN: FileCheck -check-prefix=ERROR %s
2019-08-04 00:43:55 +08:00
# RUN: not lld-link /out:%t.exe /entry:main -notarealopt=ion /WX:NO /WX %t.obj 2>&1 | \
2018-01-18 06:29:21 +08:00
# RUN: FileCheck -check-prefix=ERROR %s
2019-08-04 00:43:55 +08:00
# RUN: lld-link /out:%t.exe /entry:main -notarealopt=ion /WX /WX:NO %t.obj 2>&1 | \
2018-01-18 06:29:21 +08:00
# RUN: FileCheck -check-prefix=WARNING %s
2019-08-04 00:43:55 +08:00
# ERROR: error: ignoring unknown argument '-notarealopt=ion'
# WARNING: warning: ignoring unknown argument '-notarealopt=ion'
2018-01-18 06:29:21 +08:00
.text
.global main
main:
ret