Files
Nim/tests/cpp/tthread_createthread.nim
Adam Strzelecki e80465dacf tests: Trim .nim files trailing whitespace
via OSX: find . -name '*.nim' -exec sed -i '' -E 's/[[:space:]]+$//' {} +
2015-09-04 23:04:32 +02:00

15 lines
239 B
Nim

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()