• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 //===----------------------------------------------------------------------===//
8 
9 // UNSUPPORTED: c++03
10 
11 // <vector>
12 
13 // Test that <vector> provides all of the arithmetic, enum, and pointer
14 // hash specializations.
15 
16 #include <vector>
17 
18 #include "poisoned_hash_helper.h"
19 #include "test_macros.h"
20 #include "min_allocator.h"
21 
main(int,char **)22 int main(int, char**) {
23   test_library_hash_specializations_available();
24   {
25     test_hash_enabled_for_type<std::vector<bool> >();
26     test_hash_enabled_for_type<std::vector<bool, min_allocator<bool>>>();
27   }
28 
29   return 0;
30 }
31