blob: 64ee6df2476340fb2524c5970643c6d1d1ae9620 [file] [log] [blame]
Jeff Thompsona28eed82013-08-22 16:21:10 -07001
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 ndnboost
9#define BOOST_HASH_NO_EXTENSIONS
10#include <boost/functional/hash.hpp>
11#include <boost/detail/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 ndnboost::report_errors();
20}