diff options
Diffstat (limited to 'src/boost/libs/thread/test/no_implicit_assign_from_lvalue_thread.cpp')
-rw-r--r-- | src/boost/libs/thread/test/no_implicit_assign_from_lvalue_thread.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/boost/libs/thread/test/no_implicit_assign_from_lvalue_thread.cpp b/src/boost/libs/thread/test/no_implicit_assign_from_lvalue_thread.cpp new file mode 100644 index 000000000..1922bb7dc --- /dev/null +++ b/src/boost/libs/thread/test/no_implicit_assign_from_lvalue_thread.cpp @@ -0,0 +1,17 @@ +// Copyright (C) 2008 Anthony Williams +// +// 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) +#include <boost/thread/thread.hpp> + +void do_nothing() +{} + +void test() +{ + boost::thread t1(do_nothing); + boost::thread t2; + t2=t1; +} + +#include "./remove_error_code_unused_warning.hpp" |