This commit is contained in:
Irmen de Jong 2023-06-27 23:43:35 +02:00
parent e7b631b087
commit bf703a8a66

View File

@ -963,4 +963,25 @@ class TestProg8Parser: FunSpec( {
var6.sharedWithAsm shouldBe false
var6.zeropage shouldBe ZeropageWish.DONTCARE
}
test("line comment in array literal is ok") {
val src="""
%import textio
%zeropage basicsafe
main {
sub start() {
byte[] foo = [ 1, 2, ; this comment is ok
; line comment also ok
3,
4]
foo[1] ++
}
}"""
compileText(C64Target(), false, src, writeAssembly = false) shouldNotBe null
}
})