Add tests for linking two object files that include the hash libraries.

[SVN r29710]
This commit is contained in:
Daniel James
2005-06-20 21:45:54 +00:00
parent b96ed7b984
commit 0c3a28a294
4 changed files with 29 additions and 0 deletions

View File

@@ -45,5 +45,6 @@ rule hash-test-output ( name )
[ hash-test hash_deque_test ] [ hash-test hash_deque_test ]
[ hash-test hash_set_test ] [ hash-test hash_set_test ]
[ hash-test hash_map_test ] [ hash-test hash_map_test ]
[ run link_test.cpp link_test_2.cpp : : : <include>$(BOOST_ROOT) ]
; ;
} }

View File

@@ -24,4 +24,5 @@ test-suite functional/hash
[ run hash_deque_test.cpp framework ] [ run hash_deque_test.cpp framework ]
[ run hash_set_test.cpp framework ] [ run hash_set_test.cpp framework ]
[ run hash_map_test.cpp framework ] [ run hash_map_test.cpp framework ]
[ run link_test.cpp link_test_2.cpp ]
; ;

18
hash/test/link_test.cpp Normal file
View File

@@ -0,0 +1,18 @@
// (C) Copyright Daniel James 2005.
// Use, modification and distribution are subject to the
// Boost Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#include <boost/functional/hash/pair.hpp>
#include <boost/functional/hash/vector.hpp>
#include <boost/functional/hash/list.hpp>
#include <boost/functional/hash/deque.hpp>
#include <boost/functional/hash/set.hpp>
#include <boost/functional/hash/map.hpp>
#include <boost/functional/hash/hash.hpp>
#include <boost/functional/hash.hpp>
#include <boost/functional/hash.hpp>
extern int f();
int main() { return f(); }

View File

@@ -0,0 +1,9 @@
// (C) Copyright Daniel James 2005.
// Use, modification and distribution are subject to the
// Boost Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#include <boost/functional/hash.hpp>
int f() { return 0; }