//===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // UNSUPPORTED: c++03, c++11, c++14, c++17 // UNSUPPORTED: no-filesystem, no-localization, no-tzdb // XFAIL: libcpp-has-no-experimental-tzdb // XFAIL: availability-tzdb-missing // // struct tzdb { // string version; // vector zones; // vector links; // vector leap_seconds; // // ... // }; #include #include #include #include #include "assert_macros.h" int main(int, const char**) { std::chrono::tzdb tzdb; static_assert(std::same_as); tzdb.version = "version"; assert(tzdb.version == "version"); [[maybe_unused]] std::vector& zones = tzdb.zones; [[maybe_unused]] std::vector& links = tzdb.links; [[maybe_unused]] std::vector& leap_seconds = tzdb.leap_seconds; return 0; }