]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/detail/include/boost/detail/lightweight_test_report.hpp
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / detail / include / boost / detail / lightweight_test_report.hpp
1 // boost/detail/lightweight_test_reporter.hpp ----------------------------------------//
2
3 // Copyright Beman Dawes 2014
4
5 // Distributed under the Boost Software License, Version 1.0.
6 // See http://www.boost.org/LICENSE_1_0.txt
7
8 //--------------------------------------------------------------------------------------//
9 // //
10 // Configuration reporting cpp_main() //
11 // //
12 // Displays configuration information, then returns test_main(argc, argv), which //
13 // must be supplied by the user. //
14 // //
15 // Note: cpp_main(argc, argv) is called from a try block in main(), which is //
16 // supplied by <boost/detail/lightweight_main.hpp> as is a catch block that reports //
17 // std::exception what(). //
18 // //
19 //--------------------------------------------------------------------------------------//
20
21 #include <boost/config.hpp>
22 #include <boost/version.hpp>
23 #include <boost/detail/lightweight_test.hpp>
24 #include <boost/detail/lightweight_main.hpp>
25 #include <iostream>
26
27 int test_main(int argc, char* argv[]);
28
29 int cpp_main(int argc, char* argv[])
30 {
31 std::cout << BOOST_COMPILER
32 #ifdef __GNUC__
33 << ", __GXX_EXPERIMENTAL_CXX0X__ "
34 # ifdef __GXX_EXPERIMENTAL_CXX0X__
35 "defined"
36 # else
37 "not defined"
38 # endif
39 #endif
40 << "\n"
41 << BOOST_STDLIB << "\n"
42 << BOOST_PLATFORM << "\n"
43 << "Boost version " << BOOST_VERSION / 100000 << '.'
44 << BOOST_VERSION / 100 % 1000 << '.' << BOOST_VERSION % 100 << "\n";
45
46 std::cout << "Command line: ";
47 for (int a = 0; a < argc; ++a)
48 {
49 std::cout << argv[a];
50 if (a != argc - 1)
51 std::cout << ' ';
52 }
53 std::cout << std::endl;
54
55 return test_main(argc, argv);
56 }