mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
28 lines
443 B
NASM
28 lines
443 B
NASM
assert !def(__SCOPE__)
|
|
|
|
section "test", rom0
|
|
|
|
assert !def(.)
|
|
assert !def(..)
|
|
assert #__SCOPE__ === ""
|
|
|
|
Alpha.local1:
|
|
assert !def(.)
|
|
assert #.. === "Alpha.local1"
|
|
assert #__SCOPE__ === ".."
|
|
|
|
Beta:
|
|
assert #. === "Beta"
|
|
assert !def(..)
|
|
assert #__SCOPE__ === "."
|
|
|
|
Alpha.local2:
|
|
assert #. === "Beta"
|
|
assert #.. === "Alpha.local2"
|
|
assert #__SCOPE__ === ".."
|
|
|
|
.newLocal:
|
|
assert #. === "Beta"
|
|
assert #.. === "Beta.newLocal"
|
|
assert #__SCOPE__ === ".."
|