diff options
Diffstat (limited to 'tests/destructor')
-rw-r--r-- | tests/destructor/tnewruntime_strutils.nim | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/destructor/tnewruntime_strutils.nim b/tests/destructor/tnewruntime_strutils.nim index 80ed1757e..5b8684354 100644 --- a/tests/destructor/tnewruntime_strutils.nim +++ b/tests/destructor/tnewruntime_strutils.nim @@ -8,6 +8,11 @@ import strutils, os import core / allocators import system / ansi_c +# bug #11004 +proc retTuple(): (seq[int], int) = + # XXX this doesn't allocate yet but probably it should + return (@[1], 1) + proc nonStaticTests = doAssert formatBiggestFloat(1234.567, ffDecimal, -1) == "1234.567000" when not defined(js): @@ -177,6 +182,8 @@ proc staticTests = doAssert s.splitWhitespace(maxsplit=3) == @["this", "is", "an", "example "] doAssert s.splitWhitespace(maxsplit=4) == @["this", "is", "an", "example"] + discard retTuple() + nonStaticTests() staticTests() |