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