tfoo.nim 292 B

1234567891011121314
  1. discard """
  2. cmd: "nim default --hint:cc:off --hint:cc $file"
  3. output: '''hello world! 0.5'''
  4. nimout: '''[NimScript] exec: gcc -v'''
  5. """
  6. when not defined(definedefine):
  7. {.fatal: "wrong nim script configuration".}
  8. import math, mfriends
  9. discard gen[int]()
  10. echo "hello world! ", ln 2.0