summary refs log tree commit diff stats
path: root/tests/destructor
diff options
context:
space:
mode:
authorcooldome <cdome@bk.ru>2019-12-31 20:13:26 +0000
committerAndreas Rumpf <rumpf_a@web.de>2019-12-31 21:13:26 +0100
commit584e8c8283b3936046e6cb82044e06352976482f (patch)
tree0a09e0a97a8b4b3bfe13f8b1f60133c15873df62 /tests/destructor
parentce40ed18bb648a1ed1b78e37a07cc749ec3ab27e (diff)
downloadNim-584e8c8283b3936046e6cb82044e06352976482f.tar.gz
fixes #12989 (#12992)
* fixes #12989
* Revert "remove unwanted changes"

This reverts commit 501829732a8e44deef2d815c303859efbe452cb5.
Diffstat (limited to 'tests/destructor')
-rw-r--r--tests/destructor/t12037.nim9
-rw-r--r--tests/destructor/tmisc_destructors.nim2
2 files changed, 10 insertions, 1 deletions
diff --git a/tests/destructor/t12037.nim b/tests/destructor/t12037.nim
index 57ebae9e4..1a7d536cc 100644
--- a/tests/destructor/t12037.nim
+++ b/tests/destructor/t12037.nim
@@ -23,3 +23,12 @@ test()
 import tables
 var t = initTable[string, seq[ptr int]]()
 discard t.hasKeyOrPut("f1", @[])
+
+
+#############################################
+### bug #12989
+proc bug(start: (seq[int], int)) =
+  let (s, i) = start
+
+let input = @[0]
+bug((input, 0))
diff --git a/tests/destructor/tmisc_destructors.nim b/tests/destructor/tmisc_destructors.nim
index fdcea074b..7fc8a61c2 100644
--- a/tests/destructor/tmisc_destructors.nim
+++ b/tests/destructor/tmisc_destructors.nim
@@ -28,7 +28,7 @@ proc test(): auto =
 var (a, b, _) = test()
 
 doAssert assign_counter == 0
-doAssert sink_counter == 9 # XXX this is still silly and needs to be investigated
+doAssert sink_counter == 6
 
 # bug #11510
 proc main =