summary refs log tree commit diff stats
path: root/tests/destructor/tarc2.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/destructor/tarc2.nim')
-rw-r--r--tests/destructor/tarc2.nim4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/destructor/tarc2.nim b/tests/destructor/tarc2.nim
index bd6343b2f..7a683b4ba 100644
--- a/tests/destructor/tarc2.nim
+++ b/tests/destructor/tarc2.nim
@@ -13,9 +13,13 @@ proc create(): T = T(s: @[], data: "abc")
 proc addX(x: T; data: string) =
   x.data = data
 
+{.push sinkInference: off.}
+
 proc addX(x: T; child: T) =
   x.s.add child
 
+{.pop.}
+
 proc main(rootName: string) =
   var root = create()
   root.data = rootName