Fixed incorrect parameters for memory deallocation
This commit is contained in:
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
|
||||
}
|
Reference in New Issue
Block a user