summary refs log tree commit diff stats
path: root/tests/arc/tarcmisc.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2020-07-25 20:26:30 +0200
committerAndreas Rumpf <rumpf_a@web.de>2020-07-26 01:16:06 +0200
commit624762cfb7ab17606616f75ca280b83c55c3ec3b (patch)
treee2f2b511501baafd3a581fecde337ed297568617 /tests/arc/tarcmisc.nim
parent5c4e2bf68e067507ce0f26c93737b302bbeb5103 (diff)
downloadNim-624762cfb7ab17606616f75ca280b83c55c3ec3b.tar.gz
fixes #15052
Diffstat (limited to 'tests/arc/tarcmisc.nim')
-rw-r--r--tests/arc/tarcmisc.nim11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/arc/tarcmisc.nim b/tests/arc/tarcmisc.nim
index cb889db15..d60e932a8 100644
--- a/tests/arc/tarcmisc.nim
+++ b/tests/arc/tarcmisc.nim
@@ -24,6 +24,7 @@ whiley ends :(
 new line before - @['a']
 new line after - @['a']
 finalizer
+aaaaa
 closed
 destroying variable: 20
 destroying variable: 10
@@ -282,3 +283,13 @@ proc hello(): int =
 
 var leaves {.global.} = hello()
 doAssert leaves == 42
+
+# bug #15052
+
+proc mutstrings =
+  var data = "hello"
+  for c in data.mitems():
+    c = 'a'
+  echo data
+
+mutstrings()