1 // Copyright (C) 2015 - 2018 Andrzej Krzemienski.
2 //
3 // Use, modification, and distribution is subject to the Boost Software
4 // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
5 // http://www.boost.org/LICENSE_1_0.txt)
6 //
7 // See http://www.boost.org/lib/optional for documentation.
8 //
9 // You are welcome to contact the author at:
10 //  [email protected]
11 
12 #include "boost/core/lightweight_test.hpp"
13 #include "boost/optional/detail/optional_config.hpp"
14 #include "boost/predef.h"
15 #include <string>
16 
main()17 int main()
18 {
19 #if defined(__GNUC__)
20 
21   std::string emptys;
22 
23 #ifdef BOOST_INTEL_CXX_VERSION
24   BOOST_TEST_EQ(emptys, "HAS INTEL INSIDE");
25 #else
26   BOOST_TEST_EQ(emptys, "NO INTEL INSIDE");
27 #endif
28 
29 #if !defined BOOST_NO_CXX11_RVALUE_REFERENCES
30   BOOST_TEST_EQ(emptys, "HAS RVALUE REFS");
31 #else
32   BOOST_TEST_EQ(emptys, "NO RVALUE REFS");
33 #endif
34 
35   int empty = -1;
36   BOOST_TEST_EQ(empty, __GNUC__);
37   BOOST_TEST_EQ(empty, __GNUC_MINOR__);
38   BOOST_TEST_EQ(empty, __GNUC_PATCHLEVEL__);
39   BOOST_TEST_EQ(empty, __cplusplus);
40 #endif
41 
42   BOOST_TEST_EQ(empty, BOOST_COMP_GNUC);
43   BOOST_TEST_EQ(empty, BOOST_COMP_CLANG);
44   BOOST_TEST_EQ(empty, BOOST_LANG_STDCPP);
45   BOOST_TEST_EQ(empty, BOOST_LIB_C_GNU);
46   BOOST_TEST_EQ(empty, BOOST_LIB_STD_GNU);
47   BOOST_TEST_EQ(empty, BOOST_LIB_STD_CXX);
48 
49   return boost::report_errors();
50 }
51