Skip to content

Commit

Permalink
Add <stdfloat> tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mborland committed Aug 26, 2024
1 parent 1a450eb commit f7150ee
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/test_pow1p.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
#include <boost/math/concepts/real_concept.hpp>
#include <exception>
#include <random>

#if __has_include(<stdfloat>) && !defined(BOOST_MATH_HAS_GPU_SUPPORT)
# include <stdfloat>
#endif

#include "math_unit_test.hpp"

template <typename T>
Expand Down Expand Up @@ -93,8 +98,17 @@ void test()

int main()
{
#ifdef __STDCPP_FLOAT32_T__
test<std::float32_t>();
#else
test<float>();
#endif

#ifdef __STDCPP_FLOAT64_T__
test<std::float64_t>();
#else
test<double>();
#endif

#ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
test<long double>();
Expand Down

0 comments on commit f7150ee

Please sign in to comment.