32 lines · cpp
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-exception6//7//===----------------------------------------------------------------------===//8 9// UNSUPPORTED: no-threads10// UNSUPPORTED: c++0311 12// <thread>13 14// Test that <thread> provides all of the arithmetic, enum, and pointer15// hash specializations.16 17#include <functional>18#include <thread>19 20#include "poisoned_hash_helper.h"21 22#include "test_macros.h"23 24int main(int, char**) {25 test_library_hash_specializations_available();26 {27 test_hash_enabled<std::thread::id>();28 }29 30 return 0;31}32