remove unit test issue

This commit is contained in:
Irmen de Jong 2022-02-15 00:25:18 +01:00
parent af0e7f7187
commit e34dac8dbb
2 changed files with 7 additions and 4 deletions

View File

@ -67,7 +67,7 @@ class TestCompilerOnImportsAndIncludes: FunSpec({
val id1 = (args[1] as AddressOf).identifier
val lbl1 = id1.targetStatement(program) as Label
lbl1.name shouldBe "foo_bar"
lbl1.definingScope.name shouldBe "start"
lbl1.definingScope.name shouldBe "main"
}
}

View File

@ -1,13 +1,16 @@
%import textio
main {
str myBar = "main.bar"
;foo_bar:
; %asminclude "foo_bar.asm" ; TODO: should be accessible from inside start() but give assembler error. See github issue #62
foo_bar:
%asminclude "foo_bar.asm"
sub start() {
txt.print(myBar)
txt.print(&foo_bar)
return
foo_bar:
foo_bar_inside_start:
%asminclude "foo_bar.asm"
}
}