From 0c3a28a294afaa776318980eedd748782053fcc2 Mon Sep 17 00:00:00 2001 From: Daniel James Date: Mon, 20 Jun 2005 21:45:54 +0000 Subject: [PATCH] Add tests for linking two object files that include the hash libraries. [SVN r29710] --- hash/test/Jamfile | 1 + hash/test/Jamfile.v2 | 1 + hash/test/link_test.cpp | 18 ++++++++++++++++++ hash/test/link_test_2.cpp | 9 +++++++++ 4 files changed, 29 insertions(+) create mode 100644 hash/test/link_test.cpp create mode 100644 hash/test/link_test_2.cpp diff --git a/hash/test/Jamfile b/hash/test/Jamfile index 93f1678..fc10767 100644 --- a/hash/test/Jamfile +++ b/hash/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/hash/test/Jamfile.v2 b/hash/test/Jamfile.v2 index 0433fb2..043417e 100644 --- a/hash/test/Jamfile.v2 +++ b/hash/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/hash/test/link_test.cpp b/hash/test/link_test.cpp new file mode 100644 index 0000000..e7801b8 --- /dev/null +++ b/hash/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/hash/test/link_test_2.cpp b/hash/test/link_test_2.cpp new file mode 100644 index 0000000..287f260 --- /dev/null +++ b/hash/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; }