* test for #19046

* add threads flag
This commit is contained in:
Bung 2022-06-11 02:40:34 +08:00 • committed by GitHub
commit ac89eead8a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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