forked from boostorg/optional
fake test for checking build versions
This commit is contained in:
25
test/optional_xconfig_HACK_TO_LIST_PREDEFINED_MACROS.cpp
Normal file
25
test/optional_xconfig_HACK_TO_LIST_PREDEFINED_MACROS.cpp
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
// Copyright (C) 2015 Andrzej Krzemienski.
|
||||||
|
//
|
||||||
|
// 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)
|
||||||
|
//
|
||||||
|
// See http://www.boost.org/lib/optional for documentation.
|
||||||
|
//
|
||||||
|
// You are welcome to contact the author at:
|
||||||
|
// akrzemi1@gmail.com
|
||||||
|
|
||||||
|
#include "boost/core/lightweight_test.hpp"
|
||||||
|
#include "boost/optional/detail/optional_config.hpp"
|
||||||
|
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
#if defined(__GNUC__)
|
||||||
|
int empty = 0;
|
||||||
|
BOOST_TEST_EQ(empty, __GNUC__);
|
||||||
|
BOOST_TEST_EQ(empty, __GNUC_MINOR__);
|
||||||
|
BOOST_TEST_EQ(empty, __GNUC_PATCHLEVEL__);
|
||||||
|
BOOST_TEST_EQ(empty, __cplusplus);
|
||||||
|
#endif
|
||||||
|
return boost::report_errors();
|
||||||
|
}
|
Reference in New Issue
Block a user