From e219b65cf3433f40f1dae79a796b49c935ae71c6 Mon Sep 17 00:00:00 2001 From: Daniel Wallin Date: Mon, 13 Sep 2004 10:21:22 +0000 Subject: [PATCH] *** empty log message *** [SVN r2312] --- test/Jamfile | 4 ++++ test/result_check_test.cpp | 24 ++++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100755 test/result_check_test.cpp 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 >)); +} +