diff options
author | H. Peter Anvin <hpa@linux.intel.com> | 2016-05-09 12:05:56 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2016-05-09 12:05:56 -0700 |
commit | 69550eac55056ab1fac7bdc1b01da0e68418cd6f (patch) | |
tree | a43485c755aff0b816410d76dbe6c4295419feee /test/ptr.asm | |
parent | 934f0478d409bced70ba1660512d4839cd76c571 (diff) | |
download | nasm-69550eac55056ab1fac7bdc1b01da0e68418cd6f.tar.gz |
Specifically if we encounter the PTR keyword
Issue a specific suppressible warning if we encounter the PTR keyword.
This usually indicates someone mistakenly using MASM syntax in NASM.
This introduces a generic infrastructure for issuing warnings for such
keywords.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'test/ptr.asm')
-rw-r--r-- | test/ptr.asm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/ptr.asm b/test/ptr.asm new file mode 100644 index 00000000..bad32952 --- /dev/null +++ b/test/ptr.asm @@ -0,0 +1,4 @@ + ;; This should warn but still assemble, as the code is correct + + mov eax,dword ptr +ptr: |