summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorcooldome <ariabushenko@gmail.com>2020-08-28 16:57:52 +0100
committerGitHub <noreply@github.com>2020-08-28 17:57:52 +0200
commitf8c48fc1863a243718acf86b699baed1a5c1512e (patch)
tree4447e2b1aa5b44a49dd94c6083c18309237cdbcf /tests
parentfb58066b61b14f4a1d6cdb0f4a8f0a9ea4174d82 (diff)
downloadNim-f8c48fc1863a243718acf86b699baed1a5c1512e.tar.gz
fix #15035 (#15236)
Diffstat (limited to 'tests')
-rw-r--r--tests/arc/t14383.nim16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/arc/t14383.nim b/tests/arc/t14383.nim
index 115cbf426..742088937 100644
--- a/tests/arc/t14383.nim
+++ b/tests/arc/t14383.nim
@@ -3,6 +3,7 @@ discard """
   output: '''
 hello
 hello
+@[4, 3, 2, 1]
 '''
 """
 
@@ -11,3 +12,18 @@ import dmodule
 var val = parseMinValue()
 if val.kind == minDictionary:
   echo val
+
+
+#------------------------------------------------------------------------------
+# Issue #15035
+#------------------------------------------------------------------------------
+
+proc countRun(lst: sink openArray[int]): int =
+  discard
+
+proc timSort(lst: var openArray[int]) = 
+  let run = countRun(lst)
+
+var a = @[4, 3, 2, 1]
+timSort(a)
+echo a
\ No newline at end of file