Added more tests

This commit is contained in:
Eduard Urbach 2025-02-14 00:26:48 +01:00
parent e4cbb91f61
commit c8b5c4dbfe
No known key found for this signature in database
GPG key ID: C874F672B1AF20C0
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() {}