[RISCV] Fix mgather -> riscv.masked.strided.load combine not extending indices (...
[llvm-project.git] / libcxx / test / std / containers / sequences / vector.bool / enabled_hash.pass.cpp
blobd89984a4a30baba9e3c56aa008c4e5545142eaa8
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 // <vector>
13 // Test that <vector> provides all of the arithmetic, enum, and pointer
14 // hash specializations.
16 #include <vector>
18 #include "poisoned_hash_helper.h"
19 #include "test_macros.h"
20 #include "min_allocator.h"
22 TEST_CONSTEXPR_CXX20 bool test() {
23 test_hash_enabled_for_type<std::vector<bool> >();
24 test_hash_enabled_for_type<std::vector<bool, min_allocator<bool>>>();
26 return true;
29 int main(int, char**) {
30 test_library_hash_specializations_available();
31 test();
32 #if TEST_STD_VER > 17
33 static_assert(test());
34 #endif
36 return 0;