no_fenv_h_pass.cpp 878 B

123456789101112131415161718192021222324252627282930313233
  1. // Copyright Bryce Lelbach 2010.
  2. // Copyright John Maddock 2002-4.
  3. // Use, modification and distribution are subject to the
  4. // Boost Software License, Version 1.0. (See accompanying file
  5. // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  6. // See http://www.boost.org/libs/config for the most recent version.
  7. // Test file for macro BOOST_NO_FENV_H
  8. // This file should compile, if it does not then
  9. // BOOST_NO_FENV_H should be defined.
  10. // See file boost_no_fenv_h.ipp for details
  11. // Must not have BOOST_ASSERT_CONFIG set; it defeats
  12. // the objective of this file:
  13. #ifdef BOOST_ASSERT_CONFIG
  14. # undef BOOST_ASSERT_CONFIG
  15. #endif
  16. #include <boost/config.hpp>
  17. #include "test.hpp"
  18. #ifndef BOOST_NO_FENV_H
  19. #include "boost_no_fenv_h.ipp"
  20. #else
  21. namespace boost_no_fenv_h = empty_boost;
  22. #endif
  23. int main( int, char *[] )
  24. {
  25. return boost_no_fenv_h::test();
  26. }