Skip to content

Commit

Permalink
extra check
Browse files Browse the repository at this point in the history
  • Loading branch information
irmen committed Jan 25, 2024
1 parent d4a2031 commit 1816bda
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 0 additions & 2 deletions compiler/src/prog8/CompilerMain.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
10 changes: 9 additions & 1 deletion compiler/test/TestTypecasts.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
})

0 comments on commit 1816bda

Please sign in to comment.