t19046.nim 245 B

12345678910111213141516171819
  1. discard """
  2. targets: "c cpp"
  3. matrix: "--threads:on"
  4. disabled: "win"
  5. disabled: "osx"
  6. action: compile
  7. """
  8. # bug #19046
  9. import std/os
  10. var t: Thread[void]
  11. proc test = discard
  12. proc main =
  13. createThread(t, test)
  14. pinToCpu(t, 1)
  15. main()