Commit 10613537 by Jonathan Wakely Committed by Jonathan Wakely

PR libstdc++/66145 ensure new ABI for ios::failure tests

	PR libstdc++/66145
	* testsuite/27_io/basic_ios/copyfmt/char/1.cc: Restore ABI override
	so new ios::failure can be caught even when old ABI is the default.
	* testsuite/27_io/basic_ios/exceptions/char/1.cc: Likewise.
	* testsuite/27_io/basic_istream/extractors_arithmetic/char/
	exceptions_failbit.cc: Likewise.
	* testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
	exceptions_failbit.cc: Likewise.
	* testsuite/27_io/basic_istream/extractors_other/char/
	exceptions_null.cc: Likewise.
	* testsuite/27_io/basic_istream/extractors_other/wchar_t/
	exceptions_null.cc: Likewise.
	* testsuite/27_io/basic_istream/sentry/char/12297.cc: Likewise.
	* testsuite/27_io/basic_istream/sentry/wchar_t/12297.cc: Likewise.
	* testsuite/27_io/basic_ostream/inserters_other/char/
	exceptions_null.cc: Likewise.
	* testsuite/27_io/basic_ostream/inserters_other/wchar_t/
	exceptions_null.cc: Likewise.
	* testsuite/27_io/ios_base/storage/2.cc: Likewise.

From-SVN: r245167
parent 5b00f9d2
2017-02-03 Jonathan Wakely <jwakely@redhat.com>
PR libstdc++/66145
* testsuite/27_io/basic_ios/copyfmt/char/1.cc: Restore ABI override
so new ios::failure can be caught even when old ABI is the default.
* testsuite/27_io/basic_ios/exceptions/char/1.cc: Likewise.
* testsuite/27_io/basic_istream/extractors_arithmetic/char/
exceptions_failbit.cc: Likewise.
* testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
exceptions_failbit.cc: Likewise.
* testsuite/27_io/basic_istream/extractors_other/char/
exceptions_null.cc: Likewise.
* testsuite/27_io/basic_istream/extractors_other/wchar_t/
exceptions_null.cc: Likewise.
* testsuite/27_io/basic_istream/sentry/char/12297.cc: Likewise.
* testsuite/27_io/basic_istream/sentry/wchar_t/12297.cc: Likewise.
* testsuite/27_io/basic_ostream/inserters_other/char/
exceptions_null.cc: Likewise.
* testsuite/27_io/basic_ostream/inserters_other/wchar_t/
exceptions_null.cc: Likewise.
* testsuite/27_io/ios_base/storage/2.cc: Likewise.
PR libstdc++/60936
* src/c++11/Makefile.am: Add new files.
* src/c++11/Makefile.in: Regenerate.
......
......@@ -17,6 +17,9 @@
// with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>.
// The library throws the new definition of std::ios::failure
// { dg-options "-D_GLIBCXX_USE_CXX11_ABI=1" }
// 27.4.4.2 basic_ios member functions
// NB: Don't include any other headers in this file.
......
......@@ -17,6 +17,9 @@
// with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>.
// The library throws the new definition of std::ios::failure
// { dg-options "-D_GLIBCXX_USE_CXX11_ABI=1" }
// 27.4.4.2 basic_ios member functions
// NB: Don't include any other headers in this file.
......
......@@ -15,6 +15,9 @@
// with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>.
// The library throws the new definition of std::ios::failure
// { dg-options "-D_GLIBCXX_USE_CXX11_ABI=1" }
#include <sstream>
#include <testsuite_hooks.h>
......
......@@ -15,6 +15,9 @@
// with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>.
// The library throws the new definition of std::ios::failure
// { dg-options "-D_GLIBCXX_USE_CXX11_ABI=1" }
#include <sstream>
#include <testsuite_hooks.h>
......
......@@ -15,6 +15,9 @@
// with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>.
// The library throws the new definition of std::ios::failure
// { dg-options "-D_GLIBCXX_USE_CXX11_ABI=1" }
#include <istream>
#include <ostream>
#include <streambuf>
......
......@@ -15,6 +15,9 @@
// with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>.
// The library throws the new definition of std::ios::failure
// { dg-options "-D_GLIBCXX_USE_CXX11_ABI=1" }
#include <istream>
#include <ostream>
#include <streambuf>
......
......@@ -18,6 +18,9 @@
// 27.6.1.1.2 class basic_istream::sentry
// The library throws the new definition of std::ios::failure
// { dg-options "-D_GLIBCXX_USE_CXX11_ABI=1" }
#include <sstream>
#include <testsuite_hooks.h>
......
......@@ -15,6 +15,9 @@
// with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>.
// The library throws the new definition of std::ios::failure
// { dg-options "-D_GLIBCXX_USE_CXX11_ABI=1" }
// 27.6.1.1.2 class basic_istream::sentry
#include <sstream>
......
......@@ -15,6 +15,9 @@
// with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>.
// The library throws the new definition of std::ios::failure
// { dg-options "-D_GLIBCXX_USE_CXX11_ABI=1" }
#include <istream>
#include <ostream>
#include <streambuf>
......
......@@ -15,6 +15,9 @@
// with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>.
// The library throws the new definition of std::ios::failure
// { dg-options "-D_GLIBCXX_USE_CXX11_ABI=1" }
#include <istream>
#include <ostream>
#include <streambuf>
......
......@@ -28,6 +28,9 @@
// Radar 6467884: 10.X systems are not robust when paging space is exceeded
// { dg-skip-if "" { *-*-darwin* && lp64 } { "*" } { "" } }
// The library throws the new definition of std::ios::failure
// { dg-options "-D_GLIBCXX_USE_CXX11_ABI=1" }
#include <sstream>
#include <iostream>
#include <limits>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment