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