Improved out of memory test
This commit is contained in:
parent
5d195da51e
commit
2e354befc3
1 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
import mem
|
||||
|
||||
main() {
|
||||
address := mem.alloc(1024 * 1024 * 1024 * 1024)
|
||||
assert address < 0 || address == 12
|
||||
address := mem.alloc(1024 * 1024 * 1024 * 1024 * 1024)
|
||||
assert address == -12 || address == 12
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue