libstdc++: Fix test to use correct function
authorJonathan Wakely <jwakely@redhat.com>
Wed, 2 Sep 2020 16:20:37 +0000 (17:20 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Wed, 2 Sep 2020 16:22:47 +0000 (17:22 +0100)
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.

libstdc++-v3/testsuite/experimental/numeric/92978.cc

index 8408fd4d9ce3dc1df43e15f5f96d027d181ed7b7..e2a4b1adefa043236f75541b7a2f333556283abe 100644 (file)
@@ -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