]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/smart_ptr/test/make_shared_array_tmp_test.cpp
1 // make_shared_array_tmp_test.cpp
3 // Copyright 2017 Peter Dimov
5 // 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/make_shared.hpp>
10 #include <boost/core/lightweight_test.hpp>
29 boost::make_shared
< X
[3] >();
31 BOOST_TEST_EQ( X::destroyed
, 3 );
37 boost::make_shared
< X
[] >( 3 );
39 BOOST_TEST_EQ( X::destroyed
, 3 );
42 return boost::report_errors();