From 2e60c4dd2e980982f993822ba65c7df10e548239 Mon Sep 17 00:00:00 2001 From: Sanqui Date: Sun, 21 May 2017 11:22:20 +0200 Subject: [PATCH] Add tests for remote local symbols --- test/asm/remote-local-noexist.asm | 7 +++++++ test/asm/remote-local-noexist.out | 2 ++ test/asm/remote-local.asm | 7 +++++++ test/asm/remote-local.out | 0 4 files changed, 16 insertions(+) create mode 100644 test/asm/remote-local-noexist.asm create mode 100644 test/asm/remote-local-noexist.out create mode 100644 test/asm/remote-local.asm create mode 100644 test/asm/remote-local.out diff --git a/test/asm/remote-local-noexist.asm b/test/asm/remote-local-noexist.asm new file mode 100644 index 00000000..6530d817 --- /dev/null +++ b/test/asm/remote-local-noexist.asm @@ -0,0 +1,7 @@ +SECTION "sec", ROM0 + +Parent: +.child: + db 0 +NotParent: + dw Parent.child.fail diff --git a/test/asm/remote-local-noexist.out b/test/asm/remote-local-noexist.out new file mode 100644 index 00000000..d1079028 --- /dev/null +++ b/test/asm/remote-local-noexist.out @@ -0,0 +1,2 @@ +ERROR: remote-local-noexist.asm(7): + 'Parent.child.fail' is a nonsensical reference to a nested local symbol diff --git a/test/asm/remote-local.asm b/test/asm/remote-local.asm new file mode 100644 index 00000000..b304f1ad --- /dev/null +++ b/test/asm/remote-local.asm @@ -0,0 +1,7 @@ +SECTION "sec", ROM0 + +Parent: +.child: + db 0 +NotParent: + dw Parent.child diff --git a/test/asm/remote-local.out b/test/asm/remote-local.out new file mode 100644 index 00000000..e69de29b