dist_cauchy_incl_test.cpp 980 B

1234567891011121314151617181920212223242526
  1. // Copyright John Maddock 2006.
  2. // Use, modification and distribution are subject to the
  3. // Boost Software License, Version 1.0. (See accompanying file
  4. // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  5. //
  6. // Basic sanity check that header <boost/math/distributions/cauchy.hpp>
  7. // #includes all the files that it needs to.
  8. //
  9. #define BOOST_MATH_ASSERT_UNDEFINED_POLICY false
  10. #include <boost/math/distributions/cauchy.hpp>
  11. //
  12. // Note this header includes no other headers, this is
  13. // important if this test is to be meaningful:
  14. //
  15. #include "test_compile_result.hpp"
  16. void compile_and_link_test()
  17. {
  18. TEST_DIST_FUNC(cauchy)
  19. }
  20. template class boost::math::cauchy_distribution<float, boost::math::policies::policy<> >;
  21. template class boost::math::cauchy_distribution<double, boost::math::policies::policy<> >;
  22. #ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
  23. template class boost::math::cauchy_distribution<long double, boost::math::policies::policy<> >;
  24. #endif