summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2019-04-12 13:05:57 +0200
committerAraq <rumpf_a@web.de>2019-04-12 13:28:12 +0200
commit572735bbfab2ea13fac0dde21d4e61a3fcfd8309 (patch)
tree482ff92b58433ffa579296f38d7dbf911f85a58b /tests
parent041d15392aaf732665abab290f0cf5993d909efc (diff)
downloadNim-572735bbfab2ea13fac0dde21d4e61a3fcfd8309.tar.gz
fixes #11004
Diffstat (limited to 'tests')
-rw-r--r--tests/destructor/tnewruntime_strutils.nim7
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()