link_no_ext_test.cpp 569 B

1234567891011121314151617181920
  1. // Copyright 2005-2009 Daniel James.
  2. // Distributed under the Boost Software License, Version 1.0. (See accompanying
  3. // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  4. #include "./config.hpp"
  5. #define BOOST_HASH_TEST_NAMESPACE boost
  6. #define BOOST_HASH_NO_EXTENSIONS
  7. #include <boost/container_hash/hash.hpp>
  8. #include <boost/core/lightweight_test.hpp>
  9. extern int f(std::size_t, int*);
  10. int main() {
  11. BOOST_HASH_TEST_NAMESPACE::hash<int*> ptr_hasher;
  12. int x = 55;
  13. BOOST_TEST(!f(ptr_hasher(&x), &x));
  14. return boost::report_errors();
  15. }