mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-29 01:14:41 +00:00
21 lines
324 B
Nim
21 lines
324 B
Nim
discard """
|
|
output: '''verstuff'''
|
|
cmd: "nim c --gc:arc $file"
|
|
"""
|
|
|
|
# bug #13622
|
|
|
|
import strformat
|
|
|
|
template necho*(args: string) {.dirty.} =
|
|
if getCurrentException() != nil:
|
|
echo args
|
|
else:
|
|
stdout.writeLine(args)
|
|
|
|
proc main(cond: bool; arg: string) =
|
|
if cond:
|
|
necho &"ver{arg}\n"
|
|
|
|
main(true, "stuff")
|