Fixed out of memory test
This commit is contained in:
parent
81b0cd813c
commit
fdb47c9045
@ -102,7 +102,7 @@ Build a Linux x86-64 ELF executable from `examples/hello` and run it:
|
||||
### Platform
|
||||
|
||||
- [x] Linux
|
||||
- [ ] Mac
|
||||
- [x] Mac
|
||||
- [ ] Windows
|
||||
|
||||
## Documentation
|
||||
|
@ -2,5 +2,5 @@ import mem
|
||||
|
||||
main() {
|
||||
address := mem.alloc(1024 * 1024 * 1024 * 1024)
|
||||
assert address < 0
|
||||
assert address < 0 || address == 12
|
||||
}
|
Loading…
Reference in New Issue
Block a user