[PowerPC][NFC] Cleanup PPCCTRLoopsVerify pass
[llvm-project.git] / libcxx / test / std / strings / basic.string.hash / enabled_hashes.pass.cpp
blob0935b891fce3a3626f1c2d631bc7a0768292074e
1 //===----------------------------------------------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
9 // UNSUPPORTED: c++03
11 // <string>
13 // Test that <string> provides all of the arithmetic, enum, and pointer
14 // hash specializations.
16 #include <string>
18 #include "poisoned_hash_helper.h"
20 #include "test_macros.h"
22 int main(int, char**) {
23 test_library_hash_specializations_available();
25 test_hash_enabled_for_type<std::string>();
26 test_hash_enabled_for_type<std::wstring>();
27 #if defined(__cpp_lib_char8_t) && __cpp_lib_char8_t >= 201811L
28 test_hash_enabled_for_type<std::u8string>();
29 #endif
30 #ifndef _LIBCPP_HAS_NO_UNICODE_CHARS
31 test_hash_enabled_for_type<std::u16string>();
32 test_hash_enabled_for_type<std::u32string>();
33 #endif
36 return 0;