barebone.nim 292 B

1234567891011121314
  1. discard """
  2. ccodecheck: "\\i !@('systemInit')"
  3. ccodecheck: "\\i !@('systemDatInit')"
  4. output: "hello"
  5. """
  6. # bug #2041: Macros need to be available for os:standalone!
  7. import macros
  8. proc printf(frmt: cstring) {.varargs, header: "<stdio.h>", cdecl.}
  9. var x = 0
  10. inc x
  11. printf("hi %ld\n", x+4777)