mirror of
https://github.com/irmen/prog8.git
synced 2024-12-24 01:29:28 +00:00
remove unit test issue
This commit is contained in:
parent
af0e7f7187
commit
e34dac8dbb
@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user