summary refs log tree commit diff stats
path: root/tests/parallel/tsysspawnbadarg.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/parallel/tsysspawnbadarg.nim')
-rw-r--r--tests/parallel/tsysspawnbadarg.nim9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/parallel/tsysspawnbadarg.nim b/tests/parallel/tsysspawnbadarg.nim
new file mode 100644
index 000000000..ad798a7d3
--- /dev/null
+++ b/tests/parallel/tsysspawnbadarg.nim
@@ -0,0 +1,9 @@
+discard """
+  line: 9
+  errormsg: "'spawn' takes a call expression"
+  cmd: "nimrod $target --threads:on $options $file"
+"""
+
+import threadpool
+
+let foo = spawn(1)