]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/lambda/test/ret_test.cpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / libs / lambda / test / ret_test.cpp
index 82c947f0467bde2e2a27086163d6cc8616624ef2..bb659354f31f849146ed48d455f9d7c5431e3761 100644 (file)
@@ -8,7 +8,8 @@
 //
 // For more information, see www.boost.org
 
-#include <boost/test/minimal.hpp>
+#include <boost/core/lightweight_test.hpp>
+#define BOOST_CHECK BOOST_TEST
 
 #include <boost/lambda/lambda.hpp>
 
@@ -44,10 +45,10 @@ add_result operator+(addable, addable) {
     return add_result(7);
 }
 
-int test_main(int, char*[]) {
+int main() {
     addable test;
     test_ret(add_result(7), boost::lambda::ret<add_result>(boost::lambda::_1 + test), test);
     test_ret(8.0, boost::lambda::ret<double>(boost::lambda::constant(7) + 1));
 
-    return 0;
+    return boost::report_errors();
 }