travis: add pragma

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
Cyrill Gorcunov 2020-10-10 16:43:17 +03:00
parent e85492c824
commit bbed2ce3ce
3 changed files with 34 additions and 0 deletions

12
travis/test/pragma.asm Normal file
View 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
View 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
View 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]