]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/any/test/basic_any_test_rv.cpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / libs / any / test / basic_any_test_rv.cpp
CommitLineData
1e59de90
TL
1// Unit test for boost::basic_any<>.
2//
3// See http://www.boost.org for most recent version, including documentation.
4//
5// Copyright Antony Polukhin, 2013-2022.
6// Copyright Ruslan Arutyunyan, 2019-2021.
7//
8// Distributed under the Boost
9// Software License, Version 1.0. (See accompanying file
10// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt).
11
12#include <boost/any/basic_any.hpp>
13
14#include "move_test.hpp"
15
16#ifdef BOOST_NO_CXX11_RVALUE_REFERENCES
17
18int main()
19{
20 return EXIT_SUCCESS;
21}
22
23#else
24
25int main() {
26 const int res1 = any_tests::move_tests<boost::anys::basic_any<> >::run_tests();
27 if (res1) return 1;
28
29 const int res2 = any_tests::move_tests<boost::anys::basic_any<256, 8> >::run_tests();
30 if (res2) return 2;
31
32 const int res3 = any_tests::move_tests<boost::anys::basic_any<1, 1> >::run_tests();
33 if (res3) return 3;
34
35 const int res4 = any_tests::move_tests<boost::anys::basic_any<64, 8> >::run_tests();
36 if (res4) return 4;
37}
38
39#endif