mirror of
https://github.com/boostorg/functional.git
synced 2025-08-02 14:04:27 +02:00
Add tests for linking two object files that include the hash libraries.
[SVN r29710]
This commit is contained in:
@@ -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) ]
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
|
@@ -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
18
hash/test/link_test.cpp
Normal 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(); }
|
9
hash/test/link_test_2.cpp
Normal file
9
hash/test/link_test_2.cpp
Normal 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; }
|
Reference in New Issue
Block a user