summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorEXetoC <exetoc@gmail.com>2014-04-20 23:09:29 +0200
committerEXetoC <exetoc@gmail.com>2014-04-20 23:09:29 +0200
commitd29cf2d0e2390e1642b0bd755e506826c1578252 (patch)
tree44f78e7c21900c0f93dc1d6da9ff489db50d471a /tests
parent171f4a21e8b2180cfeb4dcdb0ebde95f73b3dec3 (diff)
downloadNim-d29cf2d0e2390e1642b0bd755e506826c1578252.tar.gz
Add test for bad spawn argument.
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)