summary refs log tree commit diff stats
path: root/tests/destructor
diff options
context:
space:
mode:
authorClyybber <darkmine956@gmail.com>2021-03-23 15:40:30 +0100
committerGitHub <noreply@github.com>2021-03-23 15:40:30 +0100
commit5f0c52048970cb7449937bd19191638c9e9f0c8f (patch)
treefd43b4597628ca98b4614131cabe2df6fd9f82eb /tests/destructor
parentc27cd83265558195316e0d3b6d13ccadcaecc728 (diff)
downloadNim-5f0c52048970cb7449937bd19191638c9e9f0c8f.tar.gz
Fixes #17450 (#17474)
* Fixes #17450

* Add missing test output
Diffstat (limited to 'tests/destructor')
-rw-r--r--tests/destructor/tnewruntime_strutils.nim13
1 files changed, 12 insertions, 1 deletions
diff --git a/tests/destructor/tnewruntime_strutils.nim b/tests/destructor/tnewruntime_strutils.nim
index 8e5378f77..9c8d41973 100644
--- a/tests/destructor/tnewruntime_strutils.nim
+++ b/tests/destructor/tnewruntime_strutils.nim
@@ -5,7 +5,8 @@ discard """
 @[(input: @["KXSC", "BGMC"]), (input: @["PXFX"]), (input: @["WXRQ", "ZSCZD"])]
 14
 First tasks completed.
-Second tasks completed.'''
+Second tasks completed.
+test1'''
 """
 
 import strutils, os, std / wordwrap
@@ -241,3 +242,13 @@ when true:
   test_string_b.setLen new_len_b
 
   echo "Second tasks completed."
+
+# bug #17450
+proc main =
+  var i = 1
+  echo:
+    block:
+      "test" & $i
+
+main()
+