]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/tools/boost_install/test/thread/quick.cpp
2 // Copyright 2017, 2018 Peter Dimov.
4 // Distributed under the Boost Software License, Version 1.0.
6 // See accompanying file LICENSE_1_0.txt or copy at
7 // http://www.boost.org/LICENSE_1_0.txt
9 #include <boost/thread.hpp>
10 #include <boost/core/lightweight_test.hpp>
12 void f( int & x
, int y
)
21 boost::thread
th( f
, boost::ref( x
), 12 );
24 BOOST_TEST_EQ( x
, 12 );
26 return boost::report_errors();