diff --git a/test/boost_no_ret_det.ipp b/test/boost_no_ret_det.ipp index 253e4584..e57c9ed7 100644 --- a/test/boost_no_ret_det.ipp +++ b/test/boost_no_ret_det.ipp @@ -12,7 +12,7 @@ // compilers insist on it, while other issue a // bunch of warnings if it is in fact present. -#if defined( BOOST_NO_EXCEPTIONS ) && !defined( _MSC_VER ) +#if defined( BOOST_NO_EXCEPTIONS ) # include #endif @@ -20,7 +20,7 @@ namespace boost_no_unreachable_return_detection{ int checker() { -#if defined( BOOST_NO_EXCEPTIONS ) && !defined( _MSC_VER ) +#if defined( BOOST_NO_EXCEPTIONS ) && (!defined( _MSC_VER ) || defined(__clang__)) abort(); #else throw 0;