summary refs log tree commit diff stats
path: root/tests/converter/t7098.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/converter/t7098.nim')
-rw-r--r--tests/converter/t7098.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/converter/t7098.nim b/tests/converter/t7098.nim
index 8e7634882..30c9c1e25 100644
--- a/tests/converter/t7098.nim
+++ b/tests/converter/t7098.nim
@@ -14,8 +14,8 @@ proc initBytesRange*(s: var Bytes, ibegin = 0, iend = -1): BytesRange =
   let e = if iend < 0: s.len + iend + 1
           else: iend
   assert ibegin >= 0 and e <= s.len
-
-  shallow(s)
+  when defined(gcRefc):
+    shallow(s)
   result.bytes = s
   result.ibegin = ibegin
   result.iend = e