Ticket #7416: asinh_negative_infinity_showcase.cpp

File asinh_negative_infinity_showcase.cpp, 261 bytes (added by Oleksii <oleksii.taran@…>, 10 years ago)

Sample code that shows bug

Line 
1#include <boost/math/special_functions/asinh.hpp>
2
3int main()
4{
5 using namespace ::boost::math::policies;
6
7 // should not throw
8 // but throws "numeric overflow" error
9 ::boost::math::asinh(-INFINITY, make_policy(overflow_error<ignore_error>()));
10
11 return 0;
12}