@(..) argument must be of type UWORD

This commit is contained in:
Irmen de Jong
2023-07-08 22:34:47 +02:00
parent 4cc0dfa10b
commit e6b158bc97
2 changed files with 29 additions and 2 deletions

View File

@@ -143,8 +143,9 @@ main {
}"""
val errors = ErrorReporterForTests()
compileText(C64Target(), false, text, writeAssembly = true, errors = errors)
errors.errors.size shouldBe 1
errors.errors[0] shouldContain "undefined symbol: doesnotexist"
errors.errors.size shouldBe 2
errors.errors[0] shouldContain "isn't uword"
errors.errors[1] shouldContain "undefined symbol: doesnotexist"
}
test("shifting by word value is ok") {