test: nasm-t -- Add br2222615

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
Cyrill Gorcunov 2018-11-11 16:58:54 +03:00
parent c51934e40f
commit 6ad457d6f8
4 changed files with 38 additions and 0 deletions

16
travis/test/br2222615.asm Normal file
View File

@ -0,0 +1,16 @@
%macro bluttan 0
nop
%endmacro
%ifnmacro bluttan
%error "bluttan is a macro"
%endif
%ifmacro blej
%error "blej is not a macro"
%endif
%ifdef ERROR
%ifnmacro
%endif
%endif

View File

View File

@ -0,0 +1,21 @@
[
{
"description": "Test br2222615 (noerr)",
"id": "br2222615",
"format": "bin",
"source": "br2222615.asm",
"option": "",
"target": [
{ "output": "br2222615.bin" }
]
},
{
"description": "Test br2222615 (err)",
"ref": "br2222615",
"option": "-DERROR -o br2222615.bin",
"target": [
{ "stderr": "br2222615.stderr" }
],
"error": "expected"
}
]

View File

@ -0,0 +1 @@
./travis/test/br2222615.asm:14: error: `%ifnmacro' expects a macro name