mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-30 18:02:05 +00:00
19 lines
245 B
Nim
19 lines
245 B
Nim
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() |