Improved out of memory test

This commit is contained in:
Eduard Urbach 2024-08-12 15:46:45 +02:00
parent 5d195da51e
commit 2e354befc3
Signed by: eduard
GPG key ID: 49226B848C78F6C8

View file

@ -1,6 +1,6 @@
import mem import mem
main() { main() {
address := mem.alloc(1024 * 1024 * 1024 * 1024) address := mem.alloc(1024 * 1024 * 1024 * 1024 * 1024)
assert address < 0 || address == 12 assert address == -12 || address == 12
} }