[gcc/devel/c++-coroutines] libstdc++: Fix test to use correct function
Iain D Sandoe
iains@gcc.gnu.org
Wed Sep 2 20:10:09 GMT 2020
https://gcc.gnu.org/g:c71644776f4e8477289a4de16239dbb420db6945
commit c71644776f4e8477289a4de16239dbb420db6945
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Wed Sep 2 17:20:37 2020 +0100
libstdc++: Fix test to use correct function
This was copied from a test for std::lcm but I forgot to change one of
the calls to use the experimental version of the function.
libstdc++-v3/ChangeLog:
PR libstdc++/92978
* testsuite/experimental/numeric/92978.cc: Use experimental::lcm
not std::lcm.
Diff:
---
libstdc++-v3/testsuite/experimental/numeric/92978.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libstdc++-v3/testsuite/experimental/numeric/92978.cc b/libstdc++-v3/testsuite/experimental/numeric/92978.cc
index 8408fd4d9ce..e2a4b1adefa 100644
--- a/libstdc++-v3/testsuite/experimental/numeric/92978.cc
+++ b/libstdc++-v3/testsuite/experimental/numeric/92978.cc
@@ -29,7 +29,7 @@ test01()
static_assert( std::experimental::gcd(120U, -10) == 10,
"mixed signed/unsigned" );
- static_assert( std::lcm(-42, 21U) == 42U );
+ static_assert( std::experimental::lcm(-42, 21U) == 42U );
}
void
More information about the Gcc-cvs
mailing list