libstdc++: Fix std::format test for Solaris [PR113450]
commitdb42a0a98916340af33338c08e6a7d328121b958
authorJonathan Wakely <jwakely@redhat.com>
Wed, 17 Jan 2024 21:40:25 +0000 (17 21:40 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Thu, 18 Jan 2024 12:43:31 +0000 (18 12:43 +0000)
treebf428d4a6db7d036df9b4db36f3e935f9127ab6a
parent1c1853a70f9422169190e65e568dcccbce02d95c
libstdc++: Fix std::format test for Solaris [PR113450]

When int8_t is a typedef for char (rather than signed char) this test
fails because it tries to format a char, which is treated differently
from formatting other integral types (including signed char).

Use signed char explicitly so the result doesn't depend on the
non-portable definition of int8_t.

libstdc++-v3/ChangeLog:

PR libstdc++/113450
* testsuite/std/format/functions/format.cc: Use signed char
instead of int8_t.
libstdc++-v3/testsuite/std/format/functions/format.cc