Imported Upstream version 1.57.0
[platform/upstream/boost.git] / libs / functional / hash / test / hash_no_ext_fail_test.cpp
1
2 // Copyright 2006-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 // Simple test to make sure BOOST_HASH_NO_EXTENSIONS does disable extensions
9 // (or at least one of them).
10 #if !defined(BOOST_HASH_NO_EXTENSIONS)
11 #  define BOOST_HASH_NO_EXTENSIONS
12 #endif
13
14 #ifdef BOOST_HASH_TEST_STD_INCLUDES
15 #  include <functional>
16 #else
17 #  include <boost/functional/hash.hpp>
18 #endif
19
20 template <class T> void ignore(T const&) {}
21
22 int main()
23 {
24     BOOST_HASH_TEST_NAMESPACE::hash< int[10] > hasher;
25     ignore(hasher);
26
27     return 0;
28 }