Improved out of memory test

This commit is contained in:
Eduard Urbach 2024-08-12 15:46:45 +02:00
parent fdb47c9045
commit b90ee62b98
Signed by: akyoto
GPG Key ID: C874F672B1AF20C0

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
} }