File tree Expand file tree Collapse file tree 2 files changed +32
-0
lines changed
Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,7 @@ run github_issue_448.cpp ;
5151run-fail github_issue_519.cpp ;
5252run github_issue_799.cpp ;
5353run github_issue_802.cpp ;
54+ run github_issue_805.cpp ;
5455run link_1.cpp link_2.cpp link_3.cpp ;
5556run quick.cpp ;
5657run random_decimal32_comp.cpp ;
Original file line number Diff line number Diff line change 1+ // Copyright 2025 Matt Borland
2+ // Distributed under the Boost Software License, Version 1.0.
3+ // https://www.boost.org/LICENSE_1_0.txt
4+
5+ #include < boost/decimal.hpp>
6+ #include < boost/core/lightweight_test.hpp>
7+ #include < iostream>
8+
9+ using namespace boost ::decimal;
10+
11+ template <typename Dec>
12+ void test ()
13+ {
14+ Dec a (2 , std::numeric_limits<Dec>::max_exponent10);
15+ Dec b = scalbln (a, 10 );
16+
17+ BOOST_TEST (isinf (b));
18+ }
19+
20+ int main ()
21+ {
22+ test<decimal32>();
23+ test<decimal64>();
24+ test<decimal128>();
25+ test<decimal32_fast>();
26+ test<decimal64_fast>();
27+ test<decimal128_fast>();
28+
29+ return boost::report_errors ();
30+ }
31+
You can’t perform that action at this time.
0 commit comments