libstdc++: testsuite: Guard use of C99 std::log2
authorJonathan Wakely <jwakely@redhat.com>
Tue, 28 Jun 2022 08:17:06 +0000 (09:17 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Thu, 21 Jul 2022 08:57:25 +0000 (09:57 +0100)
commitc19fe8ad4e2816b181e5d5d3757f1ad59c86cdca
tree68e1dc4d5077e02a874e8e4b1b0d7d506f69727b
parent145ef5e2be28183f2b92b1f81b4d75210b524503
libstdc++: testsuite: Guard use of C99 std::log2

This prevents the test from failing if the only thing not supported is
the text printed to the log about the size of the floating-point type.

libstdc++-v3/ChangeLog:

* testsuite/20_util/from_chars/4.cc: Only use log2 if C99 math
functions are available.

(cherry picked from commit 30aea28bd30027e0a6be8e3077828256779954b3)
libstdc++-v3/testsuite/20_util/from_chars/4.cc