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

source code of boost/libs/container_hash/test/link_no_ext_test.cpp