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
|
||||
}
|
@ -59,6 +59,7 @@ var programs = []struct {
|
||||
{"switch", "", "", 0},
|
||||
{"loop", "", "", 0},
|
||||
{"loop-lifetime", "", "", 0},
|
||||
{"memory-free", "", "", 0},
|
||||
{"out-of-memory", "", "", 0},
|
||||
{"struct", "", "", 0},
|
||||
}
|
||||
|
Reference in New Issue
Block a user