Skip to content

Commit d6db50e

Browse files
author
John McFarlane
committed
Add compiler error reported in 991 by @vrqq
1 parent d9e3fee commit d6db50e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/unit/scaled_integer/rounding/rounding_scaled_integer.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,4 +82,12 @@ namespace {
8282
static_assert(identical(dest_type{0}, dest_type{source_type{.75}}), "");
8383
static_assert(identical(dest_type{1}, dest_type{source_type{1.}}), "");
8484
}
85+
86+
TEST(rounding_scaled_integer, 991)
87+
{
88+
using DecX = cnl::scaled_integer<cnl::rounding_integer<long long>, cnl::power<-1, 100>>;
89+
DecX num1 = 10.554;
90+
DecX num2 = 10.545;
91+
std::cout<<num1<<" "<<num2<<std::endl;
92+
}
8593
}

0 commit comments

Comments
 (0)