summary refs log tree commit diff stats
path: root/tests/misc/t19046.nim
blob: b3bfec7aea338bc4836056100c1882f6f5cb56e1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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()