* test for #19046

* add threads flag

(cherry picked from commit ac89eead8a)
This commit is contained in:
Bung
2022-06-11 02:40:34 +08:00
committed by narimiran
parent 9622c56f37
commit 75bc4a9b78

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()