aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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]