aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2020-10-10 16:43:17 +0300
committerCyrill Gorcunov <gorcunov@gmail.com>2020-10-10 16:43:17 +0300
commitbbed2ce3ceb195dab499d6ce184246973d6147e6 (patch)
tree8e3869e746627c3a3f030128ed964f769a37c582
parente85492c8249950a769d0344c0122c8d9d6d9f05d (diff)
downloadnasm-bbed2ce3ceb195dab499d6ce184246973d6147e6.tar.gz
nasm-bbed2ce3ceb195dab499d6ce184246973d6147e6.tar.xz
nasm-bbed2ce3ceb195dab499d6ce184246973d6147e6.zip
travis: add pragma
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
-rw-r--r--travis/test/pragma.asm12
-rw-r--r--travis/test/pragma.json12
-rw-r--r--travis/test/pragma.stdout10
3 files changed, 34 insertions, 0 deletions
diff --git a/travis/test/pragma.asm b/travis/test/pragma.asm
new file mode 100644
index 00000000..cecd984b
--- /dev/null
+++ b/travis/test/pragma.asm
@@ -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
diff --git a/travis/test/pragma.json b/travis/test/pragma.json
new file mode 100644
index 00000000..4ceb3449
--- /dev/null
+++ b/travis/test/pragma.json
@@ -0,0 +1,12 @@
+[
+ {
+ "description": "Test various pragmas",
+ "id": "pragma",
+ "format": "bin",
+ "source": "pragma.asm",
+ "option": "-Ox -E",
+ "target": [
+ { "stdout": "pragma.stdout" }
+ ]
+ }
+]
diff --git a/travis/test/pragma.stdout b/travis/test/pragma.stdout
new file mode 100644
index 00000000..f03c7a4c
--- /dev/null
+++ b/travis/test/pragma.stdout
@@ -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]