mirror of
https://github.com/boostorg/system.git
synced 2025-07-29 20:17:13 +02:00
Disable failing tests on g++-7/c++17
This commit is contained in:
@ -35,16 +35,28 @@ BOOST_STATIC_ASSERT( !ec3 );
|
||||
|
||||
constexpr error_condition en1( 1, system_category() );
|
||||
|
||||
#if __GNUC__ == 7 && __cplusplus == 201703L
|
||||
// `cat_ != 0` is not a constant expression
|
||||
#else
|
||||
|
||||
BOOST_STATIC_ASSERT( en1.failed() );
|
||||
BOOST_STATIC_ASSERT( en1 );
|
||||
BOOST_STATIC_ASSERT( !!en1 );
|
||||
|
||||
#endif
|
||||
|
||||
constexpr error_condition en2( 2, generic_category() );
|
||||
|
||||
#if __GNUC__ == 7 && __cplusplus == 201703L
|
||||
// `cat_ != 0` is not a constant expression
|
||||
#else
|
||||
|
||||
BOOST_STATIC_ASSERT( en2.failed() );
|
||||
BOOST_STATIC_ASSERT( en2 );
|
||||
BOOST_STATIC_ASSERT( !!en2 );
|
||||
|
||||
#endif
|
||||
|
||||
constexpr error_condition en3;
|
||||
|
||||
BOOST_STATIC_ASSERT( !en3.failed() );
|
||||
|
Reference in New Issue
Block a user