| 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++03, c++11, c++14, c++17, c++20 |
| 10 | |
| 11 | // <format> |
| 12 | |
| 13 | // enum class range_format { |
| 14 | // disabled, |
| 15 | // map, |
| 16 | // set, |
| 17 | // sequence, |
| 18 | // string, |
| 19 | // debug_string |
| 20 | // }; |
| 21 | |
| 22 | #include <format> |
| 23 | |
| 24 | // test that the enumeration values exist |
| 25 | static_assert(requires { std::range_format::disabled; }); |
| 26 | static_assert(requires { std::range_format::map; }); |
| 27 | static_assert(requires { std::range_format::set; }); |
| 28 | static_assert(requires { std::range_format::sequence; }); |
| 29 | static_assert(requires { std::range_format::string; }); |
| 30 | static_assert(requires { std::range_format::debug_string; }); |
| 31 | |