-// Copyright (C) 2020-2021 Free Software Foundation, Inc.
+// Copyright (C) 2020-2024 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
// with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>.
-// { dg-options "-std=gnu++2a" }
-// { dg-do compile { target c++2a } }
+// { dg-do compile { target c++20 } }
+// { dg-add-options no_pch }
#include <chrono>
#ifndef __cpp_lib_chrono
# error "Feature test macro for chrono is missing in <chrono>"
-// FIXME
-// #elif __cpp_lib_chrono < 201907L
-// # error "Feature test macro for chrono has wrong value in <chrono>"
+#elif __cpp_lib_chrono < 201907L
+# error "Feature test macro for chrono has wrong value in <chrono>"
#endif
namespace __gnu_test
using std::chrono::sys_seconds;
using std::chrono::sys_days;
- // FIXME
-#if 0
using std::chrono::utc_clock;
using std::chrono::utc_time;
using std::chrono::utc_seconds;
using std::chrono::gps_clock;
using std::chrono::gps_time;
using std::chrono::gps_seconds;
-#endif
using std::chrono::file_clock;
using std::chrono::file_time;
using std::chrono::local_seconds;
using std::chrono::local_days;
- // FIXME
-#if 0
using std::chrono::clock_time_conversion;
using std::chrono::clock_cast;
using std::chrono::last_spec;
-#endif
using std::chrono::day;
using std::chrono::month;
using std::chrono::make12;
using std::chrono::make24;
- // FIXME
-#if 0
+#if _GLIBCXX_USE_CXX11_ABI
using std::chrono::tzdb;
using std::chrono::tzdb_list;
using std::chrono::get_tzdb;
using std::chrono::leap_second;
using std::chrono::time_zone_link;
+#endif
using std::chrono::local_time_format;
+ using std::chrono::from_stream;
using std::chrono::parse;
-#endif
using std::chrono::last;
using std::chrono::Sunday;