Imported Upstream version 1.57.0
[platform/upstream/boost.git] / libs / config / test / boost_no_ret_det.ipp
index c2f08ac..253e458 100644 (file)
 //                 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 )
+# include <stdlib.h>
+#endif
 
 namespace boost_no_unreachable_return_detection{
 
 int checker()
 {
+#if defined( BOOST_NO_EXCEPTIONS ) && !defined( _MSC_VER )
+   abort();
+#else
    throw 0;
+#endif
    // no return statement: we don't ever get here...
 }