diff options
author | Araq <rumpf_a@web.de> | 2019-04-12 13:05:57 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2019-04-12 13:28:12 +0200 |
commit | 572735bbfab2ea13fac0dde21d4e61a3fcfd8309 (patch) | |
tree | 482ff92b58433ffa579296f38d7dbf911f85a58b /tests | |
parent | 041d15392aaf732665abab290f0cf5993d909efc (diff) | |
download | Nim-572735bbfab2ea13fac0dde21d4e61a3fcfd8309.tar.gz |
fixes #11004
Diffstat (limited to 'tests')
-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() |