mirror of
https://github.com/netwide-assembler/nasm.git
synced 2024-11-27 08:10:07 +08:00
travis: add pragma
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
parent
e85492c824
commit
bbed2ce3ce
12
travis/test/pragma.asm
Normal file
12
travis/test/pragma.asm
Normal file
@ -0,0 +1,12 @@
|
||||
%pragma
|
||||
%pragma bluttan
|
||||
%pragma bluttan blej
|
||||
%pragma "Hej tomtegubbar"
|
||||
%define PR asm foobar
|
||||
%pragma PR
|
||||
%pragma preproc
|
||||
%pragma preproc tjo fidelittan preproc
|
||||
%pragma dbg tjo fidelittan output
|
||||
%pragma dbgdbg tjo fidelittan debug format
|
||||
%pragma Dbg Tjo Fidelittan Output
|
||||
%pragma Dbgdbg Tjo Fidelittan Debug Format
|
12
travis/test/pragma.json
Normal file
12
travis/test/pragma.json
Normal file
@ -0,0 +1,12 @@
|
||||
[
|
||||
{
|
||||
"description": "Test various pragmas",
|
||||
"id": "pragma",
|
||||
"format": "bin",
|
||||
"source": "pragma.asm",
|
||||
"option": "-Ox -E",
|
||||
"target": [
|
||||
{ "stdout": "pragma.stdout" }
|
||||
]
|
||||
}
|
||||
]
|
10
travis/test/pragma.stdout
Normal file
10
travis/test/pragma.stdout
Normal file
@ -0,0 +1,10 @@
|
||||
%line 2+1 ./travis/test/pragma.asm
|
||||
[pragma bluttan]
|
||||
[pragma bluttan blej]
|
||||
%line 6+1 ./travis/test/pragma.asm
|
||||
[pragma asm foobar]
|
||||
%line 9+1 ./travis/test/pragma.asm
|
||||
[pragma dbg tjo fidelittan output]
|
||||
[pragma dbgdbg tjo fidelittan debug format]
|
||||
[pragma Dbg Tjo Fidelittan Output]
|
||||
[pragma Dbgdbg Tjo Fidelittan Debug Format]
|
Loading…
Reference in New Issue
Block a user