Added more tests

This commit is contained in:
2025-02-14 00:26:48 +01:00
parent e4cbb91f61
commit c8b5c4dbfe
8 changed files with 73 additions and 13 deletions

View File

@ -0,0 +1,7 @@
import mem
main() {
a := mem.alloc(16)
b := a["not a number"]
b += 1
}

View File

@ -0,0 +1,6 @@
import mem
main() {
a := mem.alloc(16)
a["not a number"] = 42
}

View File

@ -0,0 +1,6 @@
main() {
a := unknown()
a += 1
}
unknown() {}