Add pedantic_enumerators_test

This commit is contained in:
Peter Dimov
2022-10-28 06:06:24 +03:00
parent f8c2b7d2d9
commit 8a982de483
2 changed files with 22 additions and 0 deletions

View File

@@ -71,6 +71,9 @@ compile unnamed_namespace_test2.cpp ;
run union_test.cpp ;
run union_test2.cpp ;
run pedantic_enumerators_test.cpp
: : : <warnings>pedantic ;
# examples
obj describe_cxx14 : describe_cxx14.cpp ;

View File

@@ -0,0 +1,19 @@
// Copyright 2022 Peter Dimov
// Distributed under the Boost Software License, Version 1.0.
// https://www.boost.org/LICENSE_1_0.txt
#include <boost/describe/enumerators.hpp>
#include <boost/core/lightweight_test_trait.hpp>
enum E {};
int main()
{
#if defined(BOOST_DESCRIBE_CXX11)
BOOST_TEST_TRAIT_FALSE((boost::describe::has_describe_enumerators<E>));
#endif
return boost::report_errors();
}