shithub: rgbds

Download patch

ref: f927c41abb317fd2d43606a05f2f1f538ed1084e
parent: 249acace08d76c34b19b2340f6210bf2146574a1
author: dbrotz <43593771+dbrotz@users.noreply.github.com>
date: Thu May 9 10:46:11 EDT 2019

Add test for referencing a symbol before setting it

--- /dev/null
+++ b/test/asm/reference-undefined-sym.asm
@@ -1,0 +1,4 @@
+SECTION "sec", ROM0
+	db X
+
+X = 2
--- /dev/null
+++ b/test/asm/reference-undefined-sym.out
@@ -1,0 +1,3 @@
+ERROR: reference-undefined-sym.asm(4):
+    'X' already referenced at reference-undefined-sym.asm(2)
+error: Assembly aborted (1 errors)!