| 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 |
| 10 |
// UNSUPPORTED: no-filesystem, no-localization, no-tzdb |
| 11 |
|
| 12 |
// XFAIL: libcpp-has-no-experimental-tzdb |
| 13 |
// XFAIL: availability-tzdb-missing |
| 14 |
|
| 15 |
// <chrono> |
| 16 |
// |
| 17 |
// class tzdb_list; |
| 18 |
// |
| 19 |
// const tzdb& front() const noexcept; |
| 20 |
|
| 21 |
#include <chrono> |
| 22 |
|
| 23 |
int main(int, char**) { |
| 24 |
const std::chrono::tzdb_list& list = std::chrono::get_tzdb_list(); |
| 25 |
[[maybe_unused]] const std::chrono::tzdb& _ = list.front(); |
| 26 |
static_assert(noexcept(list.front())); |
| 27 |
|
| 28 |
return 0; |
| 29 |
} |