Debian Codegraph @

libcxx/test/std/thread/thread.threads/thread.thread.class/thread.thread.id/enabled_hashes.pass.cpp

raw
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: no-threads
10 // UNSUPPORTED: c++03
11
12 // <thread>
13
14 // Test that <thread> provides all of the arithmetic, enum, and pointer
15 // hash specializations.
16
17 #include <functional>
18 #include <thread>
19
20 #include "poisoned_hash_helper.h"
21
22 #include "test_macros.h"
23
24 int main(int, char**) {
25 test_library_hash_specializations_available();
26 {
27 test_hash_enabled_for_type<std::thread::id>();
28 }
29
30 return 0;
31 }