diff --git a/test/Jamfile b/test/Jamfile index 93f1678..fc10767 100644 --- a/test/Jamfile +++ b/test/Jamfile @@ -45,5 +45,6 @@ rule hash-test-output ( name ) [ hash-test hash_deque_test ] [ hash-test hash_set_test ] [ hash-test hash_map_test ] + [ run link_test.cpp link_test_2.cpp : : : $(BOOST_ROOT) ] ; } diff --git a/test/Jamfile.v2 b/test/Jamfile.v2 index 0433fb2..043417e 100644 --- a/test/Jamfile.v2 +++ b/test/Jamfile.v2 @@ -24,4 +24,5 @@ test-suite functional/hash [ run hash_deque_test.cpp framework ] [ run hash_set_test.cpp framework ] [ run hash_map_test.cpp framework ] + [ run link_test.cpp link_test_2.cpp ] ; diff --git a/test/link_test.cpp b/test/link_test.cpp new file mode 100644 index 0000000..e7801b8 --- /dev/null +++ b/test/link_test.cpp @@ -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 +#include +#include +#include +#include +#include +#include +#include +#include + +extern int f(); +int main() { return f(); } diff --git a/test/link_test_2.cpp b/test/link_test_2.cpp new file mode 100644 index 0000000..287f260 --- /dev/null +++ b/test/link_test_2.cpp @@ -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 + +int f() { return 0; }