Files
Nim/tests/parallel/t7535.nim
ringabout 4fa86422c0 stdlib tests now check refc too (#21664)
* stdlib tests now check refc too

* typo

* fixes line numbers

* disable cpp

* do not touch
2023-04-21 15:37:58 +02:00

12 lines
252 B
Nim

discard """
matrix: "--mm:refc; --mm:orc"
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)