mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 17:04:41 +00:00
* testament: error instead of silently ignore invalid targets * s/target/targets/ * fix test; refs #16344 * address comments * Update testament/specs.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
19 lines
231 B
Nim
19 lines
231 B
Nim
discard """
|
|
output: '''0
|
|
1
|
|
2'''
|
|
targets: "cpp"
|
|
"""
|
|
|
|
# bug #8202
|
|
var current: int = 0
|
|
|
|
proc gen(): string = current.inc; $(current - 1)
|
|
|
|
proc allOut(a, b, c: string) =
|
|
echo a
|
|
echo b
|
|
echo c
|
|
|
|
allOut(gen(), gen(), gen())
|