mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-07 05:23:20 +00:00
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()
|
||||
Reference in New Issue
Block a user