tincludefile.nim 459 B

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