diff options
author | Philip Wernersbach <philip.wernersbach@gmail.com> | 2015-03-15 17:54:57 -0400 |
---|---|---|
committer | Philip Wernersbach <philip.wernersbach@gmail.com> | 2015-03-15 17:54:57 -0400 |
commit | dcf4cee37c6e6fd79658b6a3eb7c130b1d880aee (patch) | |
tree | 277042a43f63ca0c2b20ca430a70b2cce763f81a | |
parent | f8d6d74368ea14403d1d455db30b669750e71651 (diff) | |
download | Nim-dcf4cee37c6e6fd79658b6a3eb7c130b1d880aee.tar.gz |
Add test for fix in f8d6d74368ea14403d1d455db30b669750e71651.
-rw-r--r-- | tests/cpp/tthread_createthread.nim | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/cpp/tthread_createthread.nim b/tests/cpp/tthread_createthread.nim new file mode 100644 index 000000000..0dc081268 --- /dev/null +++ b/tests/cpp/tthread_createthread.nim @@ -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() \ No newline at end of file |