]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/27_io/basic_ifstream/cons/2020.cc
Update copyright years.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 27_io / basic_ifstream / cons / 2020.cc
index 50857927fc3ddd11aef291931abfee5a8eee437a..57f2661adf5e2dfd9dc16ba3a6f844e0ccf9b464 100644 (file)
@@ -1,6 +1,6 @@
 // 1999-01-17 bkoz test functionality of basic_filebuf for char_type == char
 
-// Copyright (C) 1997-2015 Free Software Foundation, Inc.
+// Copyright (C) 1997-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
@@ -28,7 +28,6 @@
 // should be able to use custom char_type, custom traits type
 void test07()
 {
-  bool test __attribute__((unused)) = true;
   typedef std::basic_ifstream<__gnu_test::pod_ushort> gnu_ifstr;
 
   try
@@ -37,8 +36,7 @@ void test07()
     }
   catch(std::exception& obj)
     { 
-      test = false; 
-      VERIFY( test );
+      VERIFY( false );
     }
 }