* test for #19046

* add threads flag
This commit is contained in:
Bung
2022-06-11 02:40:34 +08:00
committed by GitHub
parent 6f4bacff67
commit ac89eead8a

19
tests/misc/t19046.nim Normal file
View 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()