]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/12439_3.cc
Update copyright years.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 22_locale / time_put / put / wchar_t / 12439_3.cc
index 8127c75ea47225b398ddba6855879a9807eb156d..f7e5e87c55f076ba93a140b66e54f8cac7b6142c 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2003, 2009 Free Software Foundation
+// Copyright (C) 2003-2020 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
@@ -15,6 +15,8 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
+// { dg-require-time "" }
+
 // 22.2.5.3.1 time_put members
 
 #include <locale>
@@ -41,10 +43,9 @@ protected:
 void test03()
 {
   using namespace std;
-  bool test __attribute__((unused)) = true;
   
   wostringstream stream;
-  time_t tt = time(NULL);
+  time_t tt = time(0);
   
   const wchar_t* fmt = L"%c";