extra check

This commit is contained in:
Irmen de Jong 2024-01-25 21:54:40 +01:00
parent d4a2031c07
commit 1816bda7ea
2 changed files with 9 additions and 3 deletions

View File

@ -69,8 +69,6 @@ private fun compileMain(args: Array<String>): Boolean {
return false
}
println("BREAKPOINTINSTR=$breakpointCpuInstruction")
val outputPath = pathFrom(outputDir)
if(!outputPath.toFile().isDirectory) {
System.err.println("Output path doesn't exist")

View File

@ -1098,6 +1098,14 @@ main {
bool @shared bb = 6144
}
}"""
compileText(C64Target(), true, src, writeAssembly = true) shouldNotBe null
compileText(C64Target(), true, src, writeAssembly = false) shouldNotBe null
val src2="""
main {
sub start() {
ubyte @shared ubb = 6144 >> 2 ; should still be type error
}
}"""
compileText(C64Target(), true, src2, writeAssembly = false) shouldBe null
}
})