parent
6f4bacff67
commit
ac89eead8a
1 changed files with 19 additions and 0 deletions
19
tests/misc/t19046.nim
Normal file
19
tests/misc/t19046.nim
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
discard """
|
||||||
|
targets: "c cpp"
|
||||||
|
matrix: "--threads:on"
|
||||||
|
disabled: "win"
|
||||||
|
disabled: "osx"
|
||||||
|
action: compile
|
||||||
|
"""
|
||||||
|
|
||||||
|
# bug #19046
|
||||||
|
|
||||||
|
import std/os
|
||||||
|
|
||||||
|
var t: Thread[void]
|
||||||
|
|
||||||
|
proc test = discard
|
||||||
|
proc main =
|
||||||
|
createThread(t, test)
|
||||||
|
pinToCpu(t, 1)
|
||||||
|
main()
|
||||||
Loading…
Add table
Add a link
Reference in a new issue