summaryrefslogtreecommitdiff
path: root/test/ptr.asm
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2016-05-09 12:05:56 -0700
committerH. Peter Anvin <hpa@linux.intel.com>2016-05-09 12:05:56 -0700
commit69550eac55056ab1fac7bdc1b01da0e68418cd6f (patch)
treea43485c755aff0b816410d76dbe6c4295419feee /test/ptr.asm
parent934f0478d409bced70ba1660512d4839cd76c571 (diff)
downloadnasm-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.asm4
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: