aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2020-10-15 00:14:59 +0300
committerCyrill Gorcunov <gorcunov@gmail.com>2020-10-15 00:14:59 +0300
commite715b61509934076b8790a0bca5121912fc65a60 (patch)
tree6fbaf28309f174ce4d45e251db32a02042436bfa
parent6334ea16abab84bc6c8c74604a474a09864fcbdf (diff)
downloadnasm-e715b61509934076b8790a0bca5121912fc65a60.tar.gz
nasm-e715b61509934076b8790a0bca5121912fc65a60.tar.xz
nasm-e715b61509934076b8790a0bca5121912fc65a60.zip
travis: add ctxlocal
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
-rw-r--r--travis/test/ctxlocal.asm25
-rw-r--r--travis/test/ctxlocal.json12
-rw-r--r--travis/test/ctxlocal.o.tbin0 -> 720 bytes
3 files changed, 37 insertions, 0 deletions
diff --git a/travis/test/ctxlocal.asm b/travis/test/ctxlocal.asm
new file mode 100644
index 00000000..93e9fcae
--- /dev/null
+++ b/travis/test/ctxlocal.asm
@@ -0,0 +1,25 @@
+;;
+;; Test of context-local labels
+;;
+
+ bits 64
+ extern everywhere ; Test of extern -> global promotion, too
+ extern tjosan
+here:
+ jz .there
+%push foo
+ jo %$mordor
+ hlt
+%$mordor:
+ nop
+%pop
+.there:
+ ret
+
+everywhere:
+ ret
+
+ global everywhere
+
+tjosan:
+ ret
diff --git a/travis/test/ctxlocal.json b/travis/test/ctxlocal.json
new file mode 100644
index 00000000..935ed542
--- /dev/null
+++ b/travis/test/ctxlocal.json
@@ -0,0 +1,12 @@
+[
+ {
+ "description": "Test of context-local labels",
+ "id": "ctxlocal",
+ "format": "elf64",
+ "source": "ctxlocal.asm",
+ "option": "-Ox",
+ "target": [
+ { "output": "ctxlocal.o" }
+ ]
+ }
+]
diff --git a/travis/test/ctxlocal.o.t b/travis/test/ctxlocal.o.t
new file mode 100644
index 00000000..c4ec35df
--- /dev/null
+++ b/travis/test/ctxlocal.o.t
Binary files differ