]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/27_io/basic_ostream/inserters_arithmetic/char/3.cc
Update copyright years.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 27_io / basic_ostream / inserters_arithmetic / char / 3.cc
index 58fa6c92cf2ebdc2e52d62eb04020f7d08171a75..0c4e4c487bfc2f2d656592c709e4cf72cae0389f 100644 (file)
@@ -1,12 +1,12 @@
 // 1999-11-15 Kevin Ediger  <kediger@licor.com>
 // test the floating point inserters (facet num_put)
 
-// Copyright (C) 1999, 2002, 2003, 2005 Free Software Foundation, Inc.
+// Copyright (C) 1999-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
 // terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
+// Free Software Foundation; either version 3, or (at your option)
 // any later version.
 
 // This library is distributed in the hope that it will be useful,
 // GNU General Public License for more details.
 
 // You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING.  If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
+// with this library; see the file COPYING3.  If not see
+// <http://www.gnu.org/licenses/>.
 
 #include <sstream>
 #include <limits>
 #include <testsuite_hooks.h>
 
 template<typename T>
-bool
+void
 test03_check(T n)
 {
   using namespace std;
-  bool test __attribute__((unused)) = true;
 
   stringbuf strbuf;
   ostream o(&strbuf);
@@ -45,8 +43,6 @@ test03_check(T n)
 
   o << oct << n << ' ' << hex << n;
   VERIFY ( strbuf.str() == expect );
-
-  return test;
 }
 
 void