diff --git a/test/Jamfile.v2 b/test/Jamfile.v2 index f1fb3aa..ba8a08a 100644 --- a/test/Jamfile.v2 +++ b/test/Jamfile.v2 @@ -157,5 +157,6 @@ test-suite range : [ range-test string ] [ range-test sub_range ] [ range-test ticket_5544_terminate_irange ] + [ range-test ticket_5556_is_sorted_namespace ] ; diff --git a/test/ticket_5556_is_sorted_namespace.cpp b/test/ticket_5556_is_sorted_namespace.cpp new file mode 100644 index 0000000..78a75cd --- /dev/null +++ b/test/ticket_5556_is_sorted_namespace.cpp @@ -0,0 +1,37 @@ +// Boost.Range library +// +// Copyright Neil Groves 2011. Use, modification and +// distribution is 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) +// +// +// For more information, see http://www.boost.org/libs/range/ +// + +// Embarrasingly, the mere inclusion of these headers in this order was +// enough to trigger the defect. +#include +#include + +#include +#include + +namespace boost +{ + namespace + { + void test_ticket_5556() {} + } +} + +boost::unit_test::test_suite* +init_unit_test_suite(int argc, char* argv[]) +{ + boost::unit_test::test_suite* test + = BOOST_TEST_SUITE( "RangeTestSuite.ticket_5556" ); + + test->add( BOOST_TEST_CASE( &boost::test_ticket_5556 ) ); + + return test; +}