Files
Nim/tests/stdlib/tvarargs.nim
ringabout 4fa86422c0 stdlib tests now check refc too (#21664)
* stdlib tests now check refc too

* typo

* fixes line numbers

* disable cpp

* do not touch
2023-04-21 15:37:58 +02:00

19 lines
324 B
Nim

discard """
targets: "c js"
matrix: "--mm:refc; --mm:orc"
"""
import std/assertions
template main =
proc hello(x: varargs[string]): seq[string] =
var s: seq[string]
s.add x
s
doAssert hello() == @[]
doAssert hello("a1") == @["a1"]
doAssert hello("a1", "a2") == @["a1", "a2"]
static: main()
main()