Adjust C++11/C++14 tests to work with -fchar8_t
authorJonathan Wakely <jwakely@redhat.com>
Tue, 19 Feb 2019 02:55:12 +0000 (02:55 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Tue, 19 Feb 2019 02:55:12 +0000 (02:55 +0000)
commit102a4fe17e1b54c2de0bb7b116198f6eb1d14e2f
treec193a4c35b08f45882400bd6ee966a7bb542ac29
parent46ca1dd73c97c5bf85057d450adf4b885a427e77
Adjust C++11/C++14 tests to work with -fchar8_t

* testsuite/21_strings/basic_string/literals/types.cc
[_GLIBCXX_USE_CHAR8_T]: Adjust expected string type for u8 literal.
* testsuite/21_strings/basic_string/literals/values.cc
[_GLIBCXX_USE_CHAR8_T]: Likewise.
* testsuite/22_locale/codecvt/char16_t.cc: Adjust for u8 literals
potentially having different type.
* testsuite/22_locale/codecvt/char32_t.cc: Likewise.
* testsuite/22_locale/codecvt/codecvt_utf8/79980.cc: Cast u8 literal
to char.
* testsuite/22_locale/codecvt/codecvt_utf8/wchar_t/1.cc: Likewise.
* testsuite/22_locale/codecvt/utf8.cc: Likewise.
* testsuite/22_locale/conversions/string/2.cc: Remove u8 prefix from
string literals only using basic character set.
* testsuite/22_locale/conversions/string/3.cc: Likewise. Cast other
u8 literals to char.
* testsuite/29_atomics/headers/atomic/macros.cc [_GLIBCXX_USE_CHAR8_T]:
Test ATOMIC_CHAR8_T_LOCK_FREE.
Add missing #error to ATOMIC_CHAR16_T_LOCK_FREE test.
* testsuite/29_atomics/headers/atomic/types_std_c++0x.cc
[_GLIBCXX_USE_CHAR8_T]: Check for std::atomic_char8_t.
* testsuite/experimental/string_view/literals/types.cc
[_GLIBCXX_USE_CHAR8_T]: Adjust expected string_view type for u8
literal.
* testsuite/experimental/string_view/literals/values.cc
[_GLIBCXX_USE_CHAR8_T]: Likewise.

From-SVN: r269006
16 files changed:
libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/21_strings/basic_string/literals/types.cc
libstdc++-v3/testsuite/21_strings/basic_string/literals/values.cc
libstdc++-v3/testsuite/21_strings/basic_string_view/literals/types.cc
libstdc++-v3/testsuite/21_strings/basic_string_view/literals/values.cc
libstdc++-v3/testsuite/22_locale/codecvt/char16_t.cc
libstdc++-v3/testsuite/22_locale/codecvt/char32_t.cc
libstdc++-v3/testsuite/22_locale/codecvt/codecvt_utf8/79980.cc
libstdc++-v3/testsuite/22_locale/codecvt/codecvt_utf8/wchar_t/1.cc
libstdc++-v3/testsuite/22_locale/codecvt/utf8.cc
libstdc++-v3/testsuite/22_locale/conversions/string/2.cc
libstdc++-v3/testsuite/22_locale/conversions/string/3.cc
libstdc++-v3/testsuite/29_atomics/headers/atomic/macros.cc
libstdc++-v3/testsuite/29_atomics/headers/atomic/types_std_c++0x.cc
libstdc++-v3/testsuite/experimental/string_view/literals/types.cc
libstdc++-v3/testsuite/experimental/string_view/literals/values.cc