Improved out of memory test
This commit is contained in:
parent
fdb47c9045
commit
b90ee62b98
@ -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
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user