mirror of
https://github.com/irmen/prog8.git
synced 2024-11-26 11:49:22 +00:00
extra check
This commit is contained in:
parent
d4a2031c07
commit
1816bda7ea
@ -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")
|
||||
|
@ -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
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user