30 lines · cpp
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-exception6//7//===----------------------------------------------------------------------===//8 9// UNSUPPORTED: c++03, c++11, c++14, c++1710// UNSUPPORTED: no-filesystem, no-localization, no-tzdb11 12// XFAIL: libcpp-has-no-experimental-tzdb13// XFAIL: availability-tzdb-missing14 15// <chrono>16//17// class tzdb_list;18//19// const tzdb& front() const noexcept;20 21#include <chrono>22 23int 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}30