mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-03-25 18:10:23 +08:00
test: nasm-t -- Add org test
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
parent
915767db17
commit
0cbb3df7f4
15
travis/test/org.asm
Normal file
15
travis/test/org.asm
Normal 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
18
travis/test/org.json
Normal 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
1
travis/test/org.stderr
Normal file
@ -0,0 +1 @@
|
||||
./travis/test/org.asm:5: error: parser: instruction expected
|
Loading…
x
Reference in New Issue
Block a user