t20456_2.nim 302 B

123456789101112131415
  1. discard """
  2. joinable: false
  3. """
  4. import std/[osproc, os, strformat]
  5. from stdtest/specialpaths import testsDir
  6. when defined(nimPreviewSlimSystem):
  7. import std/assertions
  8. const
  9. nim = getCurrentCompilerExe()
  10. file = testsDir / "misc" / "m20456.nims"
  11. doAssert execCmd(fmt"{nim} check {file}") == 0