summary refs log tree commit diff stats
path: root/tests/misc/t20456_2.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/misc/t20456_2.nim')
-rw-r--r--tests/misc/t20456_2.nim14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/misc/t20456_2.nim b/tests/misc/t20456_2.nim
new file mode 100644
index 000000000..37e52c452
--- /dev/null
+++ b/tests/misc/t20456_2.nim
@@ -0,0 +1,14 @@
+discard """
+  joinable: false
+"""
+
+import std/[osproc, os, strformat]
+from stdtest/specialpaths import testsDir
+
+when defined(nimPreviewSlimSystem):
+  import std/assertions
+
+const
+  nim = getCurrentCompilerExe()
+  file = testsDir / "misc" / "m20456.nims"
+doAssert execCmd(fmt"{nim} check {file}") == 0