1 #include <boost/config.hpp>
3 // wp_convertible_test.cpp
5 // Copyright (c) 2008 Peter Dimov
7 // Distributed under the Boost Software License, Version 1.0.
8 // See accompanying file LICENSE_1_0.txt or copy at
9 // http://www.boost.org/LICENSE_1_0.txt
11 #include <boost/detail/lightweight_test.hpp>
12 #include <boost/intrusive_ptr.hpp>
20 void intrusive_ptr_add_ref( W* )
24 void intrusive_ptr_release( W* )
28 struct X: public virtual W
32 struct Y: public virtual W
40 int f( boost::intrusive_ptr<X> )
45 int f( boost::intrusive_ptr<Y> )
52 BOOST_TEST( 1 == f( boost::intrusive_ptr<Z>() ) );
53 return boost::report_errors();