mirror of
https://github.com/irmen/prog8.git
synced 2025-02-18 05:30:34 +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
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
println("BREAKPOINTINSTR=$breakpointCpuInstruction")
|
|
||||||
|
|
||||||
val outputPath = pathFrom(outputDir)
|
val outputPath = pathFrom(outputDir)
|
||||||
if(!outputPath.toFile().isDirectory) {
|
if(!outputPath.toFile().isDirectory) {
|
||||||
System.err.println("Output path doesn't exist")
|
System.err.println("Output path doesn't exist")
|
||||||
|
@ -1098,6 +1098,14 @@ main {
|
|||||||
bool @shared bb = 6144
|
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…
x
Reference in New Issue
Block a user