Skip to content

Commit f7150ee

Browse files
committed
Add <stdfloat> tests
1 parent 1a450eb commit f7150ee

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

test/test_pow1p.cpp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@
88
#include <boost/math/concepts/real_concept.hpp>
99
#include <exception>
1010
#include <random>
11+
12+
#if __has_include(<stdfloat>) && !defined(BOOST_MATH_HAS_GPU_SUPPORT)
13+
# include <stdfloat>
14+
#endif
15+
1116
#include "math_unit_test.hpp"
1217

1318
template <typename T>
@@ -93,8 +98,17 @@ void test()
9398

9499
int main()
95100
{
101+
#ifdef __STDCPP_FLOAT32_T__
102+
test<std::float32_t>();
103+
#else
96104
test<float>();
105+
#endif
106+
107+
#ifdef __STDCPP_FLOAT64_T__
108+
test<std::float64_t>();
109+
#else
97110
test<double>();
111+
#endif
98112

99113
#ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
100114
test<long double>();

0 commit comments

Comments
 (0)