1 | //===----------------------------------------------------------------------===// |
2 | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
3 | // See https://llvm.org/LICENSE.txt for license information. |
4 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
5 | // |
6 | //===----------------------------------------------------------------------===// |
7 | |
8 | // UNSUPPORTED: c++03, c++11, c++14, c++17, c++20 |
9 | |
10 | // <format> |
11 | |
12 | // enum class range_format { |
13 | // disabled, |
14 | // map, |
15 | // set, |
16 | // sequence, |
17 | // string, |
18 | // debug_string |
19 | // }; |
20 | |
21 | #include <format> |
22 | |
23 | // test that the enumeration values exist |
24 | static_assert(requires { std::range_format::disabled; }); |
25 | static_assert(requires { std::range_format::map; }); |
26 | static_assert(requires { std::range_format::set; }); |
27 | static_assert(requires { std::range_format::sequence; }); |
28 | static_assert(requires { std::range_format::string; }); |
29 | static_assert(requires { std::range_format::debug_string; }); |
30 | |