summary refs log tree commit diff stats
path: root/tests/arc/t17173.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2021-03-01 20:58:12 +0100
committerGitHub <noreply@github.com>2021-03-01 20:58:12 +0100
commitbb0c19f42cee41d5cdccbb8c47fc83669cba5540 (patch)
tree00e9dcb87b8427053143b61d05e10af7d8460cb3 /tests/arc/t17173.nim
parentc625ce80cb31d69f1683f299868572bd2caf2c5f (diff)
downloadNim-bb0c19f42cee41d5cdccbb8c47fc83669cba5540.tar.gz
fixes #17173 (#17213)
* fixes #17173

* add testcase (#17214)

* Apply suggestions from code review

* fix for newruntime

* Apply suggestions from code review

* Update lib/system.nim

* Update lib/system.nim

* Update lib/system.nim

Co-authored-by: Danil Yarantsev <tiberiumk12@gmail.com>

Co-authored-by: flywind <xzsflywind@gmail.com>
Co-authored-by: Danil Yarantsev <tiberiumk12@gmail.com>
Diffstat (limited to 'tests/arc/t17173.nim')
-rw-r--r--tests/arc/t17173.nim10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/arc/t17173.nim b/tests/arc/t17173.nim
new file mode 100644
index 000000000..5d868d9d4
--- /dev/null
+++ b/tests/arc/t17173.nim
@@ -0,0 +1,10 @@
+discard """
+  matrix: "--gc:refc; --gc:arc; --newruntime"
+"""
+
+import std/strbasics
+
+
+var a = "  vhellov   "
+strip(a)
+doAssert a == "vhellov"