]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/27_io/basic_istream/seekg/char/8348-2.cc
Update copyright years.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 27_io / basic_istream / seekg / char / 8348-2.cc
index 899a48d78427c734987728b2438f11c1e1c199a9..adad879c008215d94385271a74a2573d5ca50951 100644 (file)
@@ -1,7 +1,6 @@
 // 2000-06-29 bkoz
 
-// Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009, 2010
-// Free Software Foundation
+// Copyright (C) 2000-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
@@ -29,7 +28,6 @@
 void test06(void)
 {
   using namespace std;
-  bool test __attribute__((unused)) = true;
   string num1("555");
 
   // seekg
@@ -38,10 +36,10 @@ void test06(void)
     iss.tellg();
     int asNum = 0;
     iss >> asNum;
-    VERIFY( test = iss.eof() );
-    VERIFY( test = !iss.fail() );
+    VERIFY( iss.eof() );
+    VERIFY( !iss.fail() );
     iss.seekg(0, ios_base::beg);
-    VERIFY( test = !iss.fail() );
+    VERIFY( !iss.fail() );
   }
 }