]> 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 c91723bebd608adba81564112d47557f5e4eaa74..f0b86199e9dbf23bf2fedb24c5a901e170f03928 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2020-2022 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
@@ -124,11 +123,10 @@ namespace __gnu_test
   using std::chrono::time_zone_link;
 #endif
 
-  // FIXME
-  // using std::chrono::local_time_format;
+  using std::chrono::local_time_format;
 
-  // FIXME
-  // using std::chrono::parse;
+  using std::chrono::from_stream;
+  using std::chrono::parse;
 
   using std::chrono::last;
   using std::chrono::Sunday;