Idris2/tests/chez/chez022/expected
Edwin Brady d60feaace0 Add finalisers to Chez back end
This involves new primitives GCPtr and GCAnyPtr which are pointer types
that have finalisers attached. The finalisers are run when the
associated pointer goes out of scope.

In the test, I am assuming that the GC will only be called once, right
at the end. Otherwise, the output isn't guaranteed to be deterministic!
Let's see how this assumption holds...

This is currently Chez only. I think it'll be easy enough to add to
the Racket and Gambit back ends too.
2020-06-08 20:34:23 +01:00

10 lines
126 B
Plaintext

Hello
Hello
Done
Free X
Freeing 0 Hello
Free Y
Freeing 1 Hello
1/1: Building usealloc (usealloc.idr)
Main> Main> Bye for now!