summary refs log blame commit diff stats
path: root/tests/accept/run/tprintf.nim
blob: c8fb51cdc724634bcd5506e0519aae4bd9dca823 (plain) (tree)
1
2
3
4
5
6
7



                         

                     
                                                    






                                        

 
discard """
  file: "tprintf.nim"
  output: "Andreas Rumpf"
"""
# Test a printf proc

proc printf(file: TFile, args: openarray[string]) =
  var i = 0
  while i < args.len:
    write(file, args[i])
    inc(i)

printf(stdout, ["Andreas ", "Rumpf\n"])
#OUT Andreas Rumpf