summary refs log tree commit diff stats
path: root/tests/ccgbugs/t5701.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ccgbugs/t5701.nim')
-rw-r--r--tests/ccgbugs/t5701.nim27
1 files changed, 0 insertions, 27 deletions
diff --git a/tests/ccgbugs/t5701.nim b/tests/ccgbugs/t5701.nim
deleted file mode 100644
index 19d64a230..000000000
--- a/tests/ccgbugs/t5701.nim
+++ /dev/null
@@ -1,27 +0,0 @@
-discard """
-  output: '''(1, 1)
-(2, 2)
-(3, 3)
-@[1, 2, 3, 4]
-'''
-"""
-
-iterator zip[T1, T2](a: openarray[T1], b: openarray[T2]): iterator() {.inline.} =
-  let len = min(a.len, b.len)
-  for i in 0..<len:
-    echo (a[i], b[i])
-
-proc foo(args: varargs[int]) =
-  for i in zip(args,args):
-    discard
-
-foo(1,2,3)
-
-# 10999
-
-proc varargsToSeq(vals: varargs[int32]): seq[int32] =
-  result = newSeqOfCap[int32](vals.len)
-  for v in vals:
-    result.add v
-
-echo varargsToSeq(1, 2, 3, 4)