Debian Codegraph @

libcxx/test/std/time/time.zone/time.zone.db/time.zone.db.remote/remote_version.pass.cpp

raw
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 // const string remote_version();
18
19 #include <chrono>
20
21 #include <cassert>
22
23 #include "test_macros.h"
24
25 int main(int, const char**) {
26 std::string version = std::chrono::remote_version();
27 assert(!version.empty());
28
29 assert(version == std::chrono::get_tzdb().version);
30 assert(version == std::chrono::get_tzdb_list().front().version);
31
32 return 0;
33 }