mirror of
https://github.com/irmen/prog8.git
synced 2024-11-29 17:50:35 +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 id1 = (args[1] as AddressOf).identifier
|
||||||
val lbl1 = id1.targetStatement(program) as Label
|
val lbl1 = id1.targetStatement(program) as Label
|
||||||
lbl1.name shouldBe "foo_bar"
|
lbl1.name shouldBe "foo_bar"
|
||||||
lbl1.definingScope.name shouldBe "start"
|
lbl1.definingScope.name shouldBe "main"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,13 +1,16 @@
|
|||||||
%import textio
|
%import textio
|
||||||
main {
|
main {
|
||||||
str myBar = "main.bar"
|
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() {
|
sub start() {
|
||||||
txt.print(myBar)
|
txt.print(myBar)
|
||||||
txt.print(&foo_bar)
|
txt.print(&foo_bar)
|
||||||
return
|
return
|
||||||
foo_bar:
|
|
||||||
|
foo_bar_inside_start:
|
||||||
%asminclude "foo_bar.asm"
|
%asminclude "foo_bar.asm"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user