summary refs log tree commit diff stats
path: root/tests/parallel/t7535.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/parallel/t7535.nim')
-rw-r--r--tests/parallel/t7535.nim11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/parallel/t7535.nim b/tests/parallel/t7535.nim
new file mode 100644
index 000000000..a6bc0dabe
--- /dev/null
+++ b/tests/parallel/t7535.nim
@@ -0,0 +1,11 @@
+discard """
+  matrix: "--threads:on"
+  errormsg: "'spawn' takes a call expression; got proc (x: uint32) = echo [x]"
+"""
+
+import threadpool
+
+# bug #7535
+proc print_parallel_nok(r: uint32) =
+  for x in 0..r:
+    spawn (proc (x: uint32) = echo x)