tincludefile.nim 443 B

123456789101112131415161718192021222324252627282930
  1. discard """
  2. cmd: "nim check $options --defusages:$file,12,7 $file"
  3. nimout: '''def tincludefile_temp.nim(11, 10)
  4. usage tincludefile_temp.nim(12, 8)
  5. '''
  6. """
  7. proc foo(x: int) =
  8. echo x
  9. foo(3)
  10. echo "yes", 1 != 3
  11. #!EDIT!#
  12. discard """
  13. cmd: "nim check $options --defusages:$file/../minclude.nim,2,2 $file"
  14. nimout: '''def tincludefile_temp.nim(10, 6)
  15. usage minclude.nim(2, 1)
  16. '''
  17. """
  18. proc foo(x: int) =
  19. echo x
  20. include minclude