parent
3f1a85b7f0
commit
a87062393a
2 changed files with 24 additions and 2 deletions
20
tests/arc/tstrformat.nim
Normal file
20
tests/arc/tstrformat.nim
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
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")
|
||||
Loading…
Add table
Add a link
Reference in a new issue