Fix tests that fail with _GLIBCXX_USE_CXX11_ABI=0
authorJonathan Wakely <jwakely@redhat.com>
Fri, 26 Apr 2019 15:02:02 +0000 (16:02 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Fri, 26 Apr 2019 15:02:02 +0000 (16:02 +0100)
commit53e6927367683761193f3bb6a7009f8ba04572ff
tree3483cca098f25a370342467c9ec9ff4a2b6b5d0e
parent69dad6faf9f00b0b22a822f0a0bcc57e7256959e
Fix tests that fail with _GLIBCXX_USE_CXX11_ABI=0

The pmr::string typedef isn't available for the old COW string, so some
tests that use it were failing.

* testsuite/20_util/variant/run.cc: Use a new Hashable type to test
hashing, because pmr::string depends on _GLIBCXX_USE_CXX11_ABI==1.
* testsuite/21_strings/basic_string/hash/hash.cc
[!_GLIBCXX_USE_CXX11_ABI]: Don't test pmr strings.
* testsuite/21_strings/basic_string/hash/hash_char8_t.cc
[!_GLIBCXX_USE_CXX11_ABI]: Likewise.

From-SVN: r270604
libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/20_util/variant/run.cc
libstdc++-v3/testsuite/21_strings/basic_string/hash/hash.cc
libstdc++-v3/testsuite/21_strings/basic_string/hash/hash_char8_t.cc