Improve vacpp support.
[boost.git] / boost / libs / functional / hash / test / link_no_ext_test.cpp
blobab2701c203d843c6104969f7819fb3130e56a696
2 // Copyright Daniel James 2005-2006. Use, modification, and distribution are
3 // subject to 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)
6 #define HASH_NAMESPACE boost
7 #define BOOST_HASH_NO_EXTENSIONS
8 #include <boost/functional/hash.hpp>
9 #include <boost/detail/lightweight_test.hpp>
11 extern int f(std::size_t, int*);
13 int main() {
14 HASH_NAMESPACE::hash<int*> ptr_hasher;
15 int x = 55;
16 BOOST_TEST(!f(ptr_hasher(&x), &x));
17 return boost::report_errors();