Fixed out of memory test
This commit is contained in:
parent
314aea5ffc
commit
5d195da51e
2 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue