// Copyright 2006-2009 Daniel James. // 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 just makes sure a header which uses hash_fwd can compile without // the main hash headers. #include "./config.hpp" #if !defined(BOOST_HASH_TEST_EXTENSIONS) || defined(BOOST_HASH_TEST_STD_INCLUDES) int main() {} #else #include "./hash_fwd_test.hpp" #include template void unused(T const&) {} void fwd_test() { test::test_type1 x1(3); test::test_type1 y1("Black"); test::test_type2 x2(25, 16); test::test_type2 y2("White", "Green"); std::vector empty; std::vector empty2; test::test_type3 x3(empty.begin(), empty.end()); test::test_type3 y3(empty2.begin(), empty2.end()); // Prevent gcc warnings: unused(x1); unused(x2); unused(x3); unused(y1); unused(y2); unused(y3); } int main() { fwd_test(); return boost::report_errors(); } #endif // defined(BOOST_HASH_TEST_EXTENSIONS) && !defined(BOOST_HASH_TEST_STD_INCLUDES)