summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorBung <crc32@qq.com>2023-08-04 01:56:05 +0800
committerGitHub <noreply@github.com>2023-08-03 19:56:05 +0200
commit6b913b4741df8c80b2d930643f6dc01300fc1e1e (patch)
tree82865cc50f3f1c0793ae70150d02cf37483f3b0f /tests
parentb40da812f7aa590ed16df54a492684c228320549 (diff)
downloadNim-6b913b4741df8c80b2d930643f6dc01300fc1e1e.tar.gz
Revert "fix #22173 `sink` paramers not moved into closure (refc) (#22… (#22376)
Revert "fix #22173 `sink` paramers not moved into closure (refc) (#22359)"

This reverts commit b40da812f7aa590ed16df54a492684c228320549.
Diffstat (limited to 'tests')
-rw-r--r--tests/gc/t22173.nim20
1 files changed, 0 insertions, 20 deletions
diff --git a/tests/gc/t22173.nim b/tests/gc/t22173.nim
deleted file mode 100644
index 3fa3cc503..000000000
--- a/tests/gc/t22173.nim
+++ /dev/null
@@ -1,20 +0,0 @@
-discard """
-  cmd: '''nim c --gc:refc -r $file'''
-"""
-const Memo = 100 * 1024
-
-proc fff(v: sink string): iterator(): char =
-  return iterator(): char =
-    for c in v:
-      yield c
-
-var tmp = newString(Memo)
-
-let iter = fff(move(tmp))
-
-while true:
-  let v = iter()
-  if finished(iter):
-    break
-
-doAssert getOccupiedMem() < Memo * 3