summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2014-04-20 23:34:21 +0200
committerAndreas Rumpf <rumpf_a@web.de>2014-04-20 23:34:21 +0200
commit38892bbf6acc06d49addaee16fab480dd42ec3e5 (patch)
treec485a89e6eb0ae8875efa032f6afde893b087776 /tests
parentca2b73f64a9ed49f4914dcf37bfa1b3727317f6b (diff)
parentd29cf2d0e2390e1642b0bd755e506826c1578252 (diff)
downloadNim-38892bbf6acc06d49addaee16fab480dd42ec3e5.tar.gz
Merge pull request #1124 from EXetoC/spawn-arg-check
Spawn argument checking.
Diffstat (limited to 'tests')
-rw-r--r--tests/system/tsysspawnbadarg.nim7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/system/tsysspawnbadarg.nim b/tests/system/tsysspawnbadarg.nim
new file mode 100644
index 000000000..ace074602
--- /dev/null
+++ b/tests/system/tsysspawnbadarg.nim
@@ -0,0 +1,7 @@
+discard """
+  line: 7
+  errormsg: "'spawn' takes a call expression of type void"
+  cmd: "nimrod $target --threads:on $options $file"
+"""
+
+spawn(1)