mirror of
https://github.com/irmen/prog8.git
synced 2025-11-01 06:16:15 +00:00
@(..) now also accepts pointer to ubyte address
This commit is contained in:
@@ -243,7 +243,7 @@ main {
|
||||
compileText(VMTarget(), false, src, outputDir, errors=errors)
|
||||
val err = errors.errors
|
||||
err.size shouldBe 1
|
||||
err[0] shouldContain("15:16: can only assign uword or correct pointer type to a pointer")
|
||||
err[0] shouldContain("15:16: incompatible value type, can only assign uword or correct pointer")
|
||||
}
|
||||
|
||||
})
|
||||
@@ -131,7 +131,7 @@ main {
|
||||
val errors = ErrorReporterForTests()
|
||||
compileText(C64Target(), false, text, outputDir, writeAssembly = true, errors = errors)
|
||||
errors.errors.size shouldBe 2
|
||||
errors.errors[0] shouldContain "isn't uword"
|
||||
errors.errors[0] shouldContain "invalid address type"
|
||||
errors.errors[1] shouldContain "undefined symbol: doesnotexist"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user