summary refs log tree commit diff stats
path: root/tests/arc/t14383.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/arc/t14383.nim')
-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