diff --git a/test/Jamfile b/test/Jamfile index d98c500..16943cd 100644 --- a/test/Jamfile +++ b/test/Jamfile @@ -15,4 +15,8 @@ import testing ; : [ run named_params_test.cpp ] [ run named_params_sfinae.cpp ] ; + + test-suite "result_check" + : [ compile result_check_test.cpp ] + ; } diff --git a/test/result_check_test.cpp b/test/result_check_test.cpp new file mode 100755 index 0000000..b26b2e6 --- /dev/null +++ b/test/result_check_test.cpp @@ -0,0 +1,24 @@ +// Copyright Daniel Wallin 2004. 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) + +#include +#include + +BOOST_RESULT_CHECK(2, add, operator+, _1 + _2) + +struct X +{ +}; + +X operator+(X const&, X const&); +X& operator+(X&, X&); + +int main() +{ + using namespace boost; + + BOOST_MPL_ASSERT((check_add >)); + BOOST_MPL_ASSERT((check_add >)); +} +