-// 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
// 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>
void test1()
{
using namespace std;
- bool test __attribute__((unused)) = true;
wostringstream stream;
stream << static_cast<wstreambuf*>(0);
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&)
{
}