From dcf4cee37c6e6fd79658b6a3eb7c130b1d880aee Mon Sep 17 00:00:00 2001 From: Philip Wernersbach Date: Sun, 15 Mar 2015 17:54:57 -0400 Subject: [PATCH] Add test for fix in f8d6d74368ea14403d1d455db30b669750e71651. --- tests/cpp/tthread_createthread.nim | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 tests/cpp/tthread_createthread.nim diff --git a/tests/cpp/tthread_createthread.nim b/tests/cpp/tthread_createthread.nim new file mode 100644 index 0000000000..0dc0812685 --- /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