[PATCH 8/9]: C++ P0482R5 char8_t: Updates to existing standard library tests

Jonathan Wakely jwakely@redhat.com
Fri Feb 22 01:19:00 GMT 2019


On 05/11/18 14:40 -0500, Tom Honermann wrote:
>This patch augments existing tests to validate behavior for char8_t.  
>In all cases, added test cases are cloned from existing tests for 
>wchar_t or char16_t.
>
>A few tests required updates to line numbers for diagnostic messages.

I had to make a few changes to this patch. I don't like adding
-fchar8_t to lots of non-C++2a tests, so I removed all the lines
adding that to the dg-options. Instead I either ensured all the checks
for char8_t features are guarded by _GLIBCXX_USE_CHAR8_t, or are in
their own new test files that are compiled using -std=gnu++2a.

I also had to fix the changes to
testsuite/util/testsuite_common_types.h because the additions to the
integral types and the atomic integral types were not in the same
order, so testsuite/29_atomics/atomic/requirements/base_classes.cc
failed when using -std=gnu++2a.

I've committed the attached patch.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 30952 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20190222/145dcd99/attachment.bin>


More information about the Libstdc++ mailing list