summary refs log tree commit diff stats
path: root/tests/misc
diff options
context:
space:
mode:
authorringabout <43030857+ringabout@users.noreply.github.com>2022-10-02 12:44:10 +0800
committerGitHub <noreply@github.com>2022-10-02 06:44:10 +0200
commit81e7811e01b22518cb5e533cf75ed5dda0873415 (patch)
tree926a5970388cfb9b6d734f9bc2f7760a38aa6738 /tests/misc
parent0769b160c5e1e3f17a87c4a50c0c8d4ba076858f (diff)
downloadNim-81e7811e01b22518cb5e533cf75ed5dda0873415.tar.gz
fixes nim check with orc (#20456)
* fixes nim check with orc

* fixes tests

* add tests

* fixes tests

* Update tests/arc/t20456.nim
Diffstat (limited to 'tests/misc')
-rw-r--r--tests/misc/m20456.nims1
-rw-r--r--tests/misc/t20456_2.nim14
2 files changed, 15 insertions, 0 deletions
diff --git a/tests/misc/m20456.nims b/tests/misc/m20456.nims
new file mode 100644
index 000000000..8a9313129
--- /dev/null
+++ b/tests/misc/m20456.nims
@@ -0,0 +1 @@
+echo 123
\ No newline at end of file
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