]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/std/time/syn_c++20.cc
Update copyright years.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / std / time / syn_c++20.cc
index 6ba181dcaf2e8a5183cd637c3ae1aa294d553fe6..f0b86199e9dbf23bf2fedb24c5a901e170f03928 100644 (file)
@@ -1,4 +1,4 @@
-// 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
@@ -43,8 +42,6 @@ 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;
@@ -59,7 +56,6 @@ namespace __gnu_test
   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;
@@ -69,13 +65,10 @@ namespace __gnu_test
   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;
@@ -101,8 +94,7 @@ namespace __gnu_test
   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;
@@ -129,11 +121,12 @@ namespace __gnu_test
   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;