// (C) Copyright Jonathan Turkanis 2004 // 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.) // This test should compile and execute successfully for both static_move_ptr // and dynamic_move_ptr. #include #include #include "./detail/move_ptr.hpp" #include "./detail/incomplete_type.hpp" using namespace boost; using namespace boost::move_ptrs::test; using boost::unit_test_framework::test_suite; void delete_incomplete_type_test() { { // The following version fails on EDG. // BOOST_MOVE_PTR ptr(new_incomplete()); BOOST_MOVE_PTR ptr = new_incomplete(); } BOOST_CHECK(boost::move_ptrs::test::incomplete_count == 0); } test_suite* init_unit_test_suite(int, char* []) { test_suite* test = BOOST_TEST_SUITE("delete incomplete type test"); test->add(BOOST_TEST_CASE(&delete_incomplete_type_test)); return test; }