Fixed incorrect parameters for memory deallocation
This commit is contained in:
parent
ade1fd8fff
commit
b1228be79a
4 changed files with 11 additions and 9 deletions
7
tests/programs/memory-free.q
Normal file
7
tests/programs/memory-free.q
Normal file
|
@ -0,0 +1,7 @@
|
|||
import mem
|
||||
|
||||
main() {
|
||||
address := mem.alloc(1024)
|
||||
err := mem.free(address, 1024)
|
||||
assert err == 0
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue