From: Jonathan Wakely Date: Wed, 2 Sep 2020 16:20:37 +0000 (+0100) Subject: libstdc++: Fix test to use correct function X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c71644776f4e8477289a4de16239dbb420db6945;p=gcc.git 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 --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