diff options
Diffstat (limited to 'tests/system/tnilconcats.nim')
-rw-r--r-- | tests/system/tnilconcats.nim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/system/tnilconcats.nim b/tests/system/tnilconcats.nim index c1126405c..69fc3913c 100644 --- a/tests/system/tnilconcats.nim +++ b/tests/system/tnilconcats.nim @@ -26,7 +26,8 @@ when true: # casting an empty string as sequence with shallow() should not segfault var s2: string - shallow(s2) + when defined(gcRefc): + shallow(s2) s2 &= "foo" doAssert s2 == "foo" |