test: nasm-t -- Add org test

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
Cyrill Gorcunov 2018-11-04 16:50:19 +03:00
parent 915767db17
commit 0cbb3df7f4
3 changed files with 34 additions and 0 deletions

15
travis/test/org.asm Normal file
View File

@ -0,0 +1,15 @@
;
; Simple test of a 64-bit org directive
;
bits 64
org 0xffffffffffff0000
hello: jmp there
nop
nop
there:
add rax,[rsp+rbx]
inc eax
section .data
there_ptr dq there

18
travis/test/org.json Normal file
View File

@ -0,0 +1,18 @@
[
{
"description": "Test org directive error (elf64)",
"id": "org",
"format": "elf64",
"source": "org.asm",
"option": "-Ox",
"target": [
{ "stderr": "org.stderr" }
],
"error": "expected"
},
{
"description": "Test org directive error (win64)",
"ref": "org",
"format": "win64"
}
]

1
travis/test/org.stderr Normal file
View File

@ -0,0 +1 @@
./travis/test/org.asm:5: error: parser: instruction expected