timportc_distinct.nim 191 B

1234567891011121314
  1. discard """
  2. ccodecheck: "time_t"
  3. joinable: false
  4. """
  5. type
  6. Time* {.importc: "time_t", header: "<time.h>".} = distinct clong
  7. proc foo =
  8. var s: Time = default(Time)
  9. discard s
  10. foo()