llvm-project/llvm/test/tools/llvm-ml/hexfloat_error.asm
Eric Astor 0499a9d688 [ms] [llvm-ml] Accept /WX to signal that warnings should be fatal.
Define -fatal-warnings to make warnings fatal, and accept /WX as an ML.EXE compatible alias for it.

Also make sure that if Warning() returns true, we always treat it as an error.

Reviewed By: thakis

Differential Revision: https://reviews.llvm.org/D92504
2021-04-02 15:13:20 -04:00

11 lines
235 B
NASM

; RUN: not llvm-ml -filetype=s %s /WX /Fo /dev/null 2>&1 | FileCheck %s --implicit-check-not=error:
.data
; CHECK: :[[# @LINE + 1]]:25: error: MASM-style hex floats ignore explicit sign
negative_hexfloat REAL4 -3fa66666r
.code
END