9 #include <boost/test/unit_test.hpp>
11 #include "Acts/Utilities/FpeMonitor.hpp"
18 namespace utf = boost::unit_test;
20 namespace Acts::Test {
22 BOOST_AUTO_TEST_SUITE(FpeMonitorTest)
24 #if defined(_FE_INVALID)
28 volatile const double x = -1;
29 printf(
"y = %f\n", std::sqrt(x));
34 #if defined(_FE_DIVBYZERO)
38 volatile double z = 0;
39 volatile double x = 1 /
z;
40 std::cout <<
"x: " << x << std::endl;
45 #if defined(_FE_OVERFLOW)
50 volatile double w = std::numeric_limits<double>::max();
52 std::cout << v << std::endl;
57 BOOST_AUTO_TEST_SUITE_END()