mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 17:04:41 +00:00
20 lines
257 B
Nim
20 lines
257 B
Nim
|
|
type
|
|
PNode = ref TNode
|
|
TNode = object
|
|
le: PNode
|
|
|
|
proc finalizeNode(n: PNode) =
|
|
var s = @[0]
|
|
|
|
proc returnTree() =
|
|
var cycle: PNode
|
|
new(cycle, finalizeNode)
|
|
cycle.le = cycle
|
|
|
|
for i in 1..100:
|
|
returnTree()
|
|
|
|
GC_fullCollect()
|
|
GC_fullCollect()
|