You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
brigand/test/config_test.cpp

23 lines
530 B
C++

#include <brigand/config.hpp>
#ifdef BRIGAND_COMP_MSVC
static_assert(_MSC_VER > 0, "wrong compiler detection macro");
#endif
#ifdef BRIGAND_COMP_MSVC_2015
static_assert(_MSC_VER == 1900, "wrong compiler detection macro");
#endif
#ifdef BRIGAND_COMP_MSVC_2013
static_assert(_MSC_VER == 1800, "wrong compiler detection macro");
#endif
#ifdef BRIGAND_COMP_GCC
static_assert(__GNUC__ > 0, "wrong compiler detection macro");
#endif
#ifdef BRIGAND_COMP_CLANG
static_assert(__clang__ > 0, "wrong compiler detection macro");
#endif