libstdc++: Import MSVC floating-point std::to_chars testcases
authorPatrick Palka <ppalka@redhat.com>
Fri, 18 Dec 2020 04:11:38 +0000 (23:11 -0500)
committerPatrick Palka <ppalka@redhat.com>
Fri, 18 Dec 2020 04:11:38 +0000 (23:11 -0500)
commitddb9c661c2f1040a2fe569098fce09f44ab05b52
treed1f30668a3592b1fb0019c794a5149ba8cb9c31e
parent3c57e692357c79ee7623dfc1586652aee2aefb8f
libstdc++: Import MSVC floating-point std::to_chars testcases

The testcases are imported almost verbatim, with the only change being
to the -double_nan and -float_nan testcases.  We expect these values to
be formatted as "-nan" instead of "-nan(ind)".

libstdc++-v3/ChangeLog:

* testsuite/20_util/to_chars/double.cc: New test, consisting of
testcases imported from the MSVC STL testsuite.
* testsuite/20_util/to_chars/float.cc: Likewise.
libstdc++-v3/testsuite/20_util/to_chars/double.cc [new file with mode: 0644]
libstdc++-v3/testsuite/20_util/to_chars/float.cc [new file with mode: 0644]