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 | |
11 | // <future> |
12 | |
13 | // template <> struct is_error_code_enum<future_errc> : public true_type {}; |
14 | |
15 | #include <future> |
16 | #include "test_macros.h" |
17 | |
18 | int main(int, char**) |
19 | { |
20 | static_assert(std::is_error_code_enum <std::future_errc>::value, "" ); |
21 | #if TEST_STD_VER > 14 |
22 | static_assert(std::is_error_code_enum_v<std::future_errc>, "" ); |
23 | #endif |
24 | |
25 | return 0; |
26 | } |
27 | |