t17121.nim 263 B

12345678910
  1. discard """
  2. errormsg: "cannot 'importc' variable at compile time; c_printf"
  3. """
  4. proc c_printf*(frmt: cstring): cint {.importc: "printf", header: "<stdio.h>", varargs, discardable.} =
  5. ## foo bar
  6. runnableExamples: discard
  7. static:
  8. let a = c_printf("abc\n")