]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/27_io/basic_istream/extractors_character/wchar_t/9555-ic.cc
Update copyright years.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 27_io / basic_istream / extractors_character / wchar_t / 9555-ic.cc
index f691872befe493bb6c14ffed91fbcc69d16b63fc..c4935b7c6ca4be93e34b999cd31533634126dabb 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2004-2015 Free Software Foundation, Inc.
+// Copyright (C) 2004-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
@@ -29,7 +29,6 @@ struct buf: std::wstreambuf
 template<typename T>
 void testthrow(T arg)
 {
-  bool test __attribute__((unused)) = true;
   buf b;
   std::wistream is(&b);
   is.exceptions(std::wios::badbit);
@@ -45,8 +44,7 @@ void testthrow(T arg)
     }
   catch(...) 
     {
-      test = false;
-      VERIFY( test );
+      VERIFY( false );
     }    
 }