enabled_hash.pass.cpp 841 B

123456789101112131415161718192021222324252627282930
  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. // UNSUPPORTED: c++98, c++03
  9. // <vector>
  10. // Test that <vector> provides all of the arithmetic, enum, and pointer
  11. // hash specializations.
  12. #include <vector>
  13. #include "poisoned_hash_helper.h"
  14. #include "test_macros.h"
  15. #include "min_allocator.h"
  16. int main(int, char**) {
  17. test_library_hash_specializations_available();
  18. {
  19. test_hash_enabled_for_type<std::vector<bool> >();
  20. test_hash_enabled_for_type<std::vector<bool, min_allocator<bool>>>();
  21. }
  22. return 0;
  23. }