diff options
author | Marshall Clow <mclow.lists@gmail.com> | 2018-12-11 04:35:44 +0000 |
---|---|---|
committer | Marshall Clow <mclow.lists@gmail.com> | 2018-12-11 04:35:44 +0000 |
commit | 7dad0bd68bf780b08b70c02a3b88374abfa6c152 (patch) | |
tree | f3dc02cfe3636fcb6bea07d6eba9e0c80aa71c33 /libcxx/test/std/strings/basic.string.hash | |
parent | 6368818fd572b49ecb062906ed4a379bca4447df (diff) | |
download | bcm5719-llvm-7dad0bd68bf780b08b70c02a3b88374abfa6c152.tar.gz bcm5719-llvm-7dad0bd68bf780b08b70c02a3b88374abfa6c152.zip |
Second part of P0482 - char8_t. Reviewed as https://reviews.llvm.org/D55308
llvm-svn: 348828
Diffstat (limited to 'libcxx/test/std/strings/basic.string.hash')
-rw-r--r-- | libcxx/test/std/strings/basic.string.hash/enabled_hashes.pass.cpp | 3 | ||||
-rw-r--r-- | libcxx/test/std/strings/basic.string.hash/strings.pass.cpp | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/libcxx/test/std/strings/basic.string.hash/enabled_hashes.pass.cpp b/libcxx/test/std/strings/basic.string.hash/enabled_hashes.pass.cpp index 01f01218999..e6f3d53a84e 100644 --- a/libcxx/test/std/strings/basic.string.hash/enabled_hashes.pass.cpp +++ b/libcxx/test/std/strings/basic.string.hash/enabled_hashes.pass.cpp @@ -23,6 +23,9 @@ int main() { { test_hash_enabled_for_type<std::string>(); test_hash_enabled_for_type<std::wstring>(); +#if defined(__cpp_lib_char8_t) && __cpp_lib_char8_t >= 201811L + test_hash_enabled_for_type<std::u8string>(); +#endif #ifndef _LIBCPP_HAS_NO_UNICODE_CHARS test_hash_enabled_for_type<std::u16string>(); test_hash_enabled_for_type<std::u32string>(); diff --git a/libcxx/test/std/strings/basic.string.hash/strings.pass.cpp b/libcxx/test/std/strings/basic.string.hash/strings.pass.cpp index d74e485752f..449ad8f1139 100644 --- a/libcxx/test/std/strings/basic.string.hash/strings.pass.cpp +++ b/libcxx/test/std/strings/basic.string.hash/strings.pass.cpp @@ -44,6 +44,9 @@ test() int main() { test<std::string>(); +#if defined(__cpp_lib_char8_t) && __cpp_lib_char8_t >= 201811L + test<std::u8string>(); +#endif #ifndef _LIBCPP_HAS_NO_UNICODE_CHARS test<std::u16string>(); test<std::u32string>(); |