Add test for fix in f8d6d74368.

This commit is contained in:
Philip Wernersbach
2015-03-15 17:54:57 -04:00
parent f8d6d74368
commit dcf4cee37c

View File

@@ -0,0 +1,14 @@
discard """
cmd: "nim cpp --hints:on --threads:on $options $file"
"""
proc threadMain(a: int) {.thread.} =
discard
proc main() =
var thread: TThread[int]
thread.createThread(threadMain, 0)
thread.joinThreads()
main()