]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/27_io/basic_ostream/inserters_other/wchar_t/exceptions_null.cc
Update copyright years.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 27_io / basic_ostream / inserters_other / wchar_t / exceptions_null.cc
index 1de18ede7f3aa3862a19e7ae1654fccfee9a266a..6f16d54aaab15ff83fb9a827028e8749eb3d8442 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2005-2016 Free Software Foundation, Inc.
+// Copyright (C) 2005-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
@@ -15,9 +15,6 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// The library still throws the original definition of std::ios::failure
-// { dg-options "-D_GLIBCXX_USE_CXX11_ABI=0" }
-
 #include <istream>
 #include <ostream>
 #include <streambuf>
@@ -27,7 +24,6 @@
 void test1()
 {
   using namespace std;
-  bool test __attribute__((unused)) = true;
 
   wostringstream stream;
   stream << static_cast<wstreambuf*>(0);
@@ -37,17 +33,16 @@ void test1()
 void test3()
 {
   using namespace std;
-  bool test __attribute__((unused)) = true;
 
   wostringstream stream;
   stream.exceptions(ios_base::badbit);
-       
+
   try
     {
       stream << static_cast<wstreambuf*>(0);
       VERIFY( false );
     }
-  catch (ios_base::failure&)
+  catch (std::ios_base::failure&)
     {
     }