[libcxx-commits] [libcxx] [libc++][chrono] Loads tzdata.zi in tzdb. (PR #74928)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Tue Feb 6 11:29:36 PST 2024


================
@@ -0,0 +1,30 @@
+//===----------------------------------------------------------------------===//
+//
+// 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-incomplete-tzdb
+// XFAIL: availability-tzdb-missing
+
+// <chrono>
+
+// class time_zone_link
+// {
+//   time_zone_link(time_zone_link&&)            = default;
+//   time_zone_link& operator=(time_zone_link&&) = default;
+//
+//   ...
+// };
+
+#include <chrono>
+#include <concepts>
+#include <type_traits>
+
+static_assert(std::move_constructible<std::chrono::time_zone_link>);
----------------
ldionne wrote:

`LIBCPP_STATIC_ASSERT(!std::is_copy_constructible)` for Hyrum?

https://github.com/llvm/llvm-project/pull/74928


More information about the libcxx-commits mailing list