From bb3493bdf013fd7b82902e6fefb2f05cc50bc3da Mon Sep 17 00:00:00 2001 From: "Vicente J. Botet Escriba" Date: Sat, 10 Nov 2012 10:30:05 +0000 Subject: [PATCH] Thread: Added test for #7666 [SVN r81281] --- test/test_7666.cpp | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 test/test_7666.cpp diff --git a/test/test_7666.cpp b/test/test_7666.cpp new file mode 100644 index 00000000..b0c8372f --- /dev/null +++ b/test/test_7666.cpp @@ -0,0 +1,23 @@ +// Copyright (C) 2010 Vicente Botet +// +// Distributed under the Boost Software License, Version 1.0. (See accompanying +// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) + +#define BOOST_CHRONO_VERSION 2 +#define BOOST_THREAD_VERSION 2 + +#include + +void myFunc() +{ + boost::this_thread::sleep(boost::posix_time::seconds(5)); +} + +int main(int, char **) +{ + boost::thread p(myFunc); + + p.join(); + + return 0; +}