tests/gc/gcleak4.nim
This commit is contained in:
parent
869a5aa90d
commit
d257f7fd36
3 changed files with 13 additions and 4 deletions
|
|
@ -100,6 +100,8 @@ proc usrToCell(usr: pointer): PCell {.inline.} =
|
|||
result = cast[PCell](cast[TAddress](usr)-%TAddress(sizeof(TCell)))
|
||||
|
||||
proc canbeCycleRoot(c: PCell): bool {.inline.} =
|
||||
if c.typ == nil:
|
||||
echo "ARRGHHHHHHH"
|
||||
result = ntfAcyclic notin c.typ.flags
|
||||
|
||||
proc extGetCellType(c: pointer): PNimType {.compilerproc.} =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue