From: Jonathan Wakely Date: Fri, 3 Feb 2017 19:26:51 +0000 (+0000) Subject: PR libstdc++/66145 ensure new ABI for ios::failure tests X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=10613537a958bf1e73679e93f92e7e1032738b47;p=gcc.git 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 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 045fff24e6d..0d6f5d018a3 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,25 @@ 2017-02-03 Jonathan Wakely + 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. diff --git a/libstdc++-v3/testsuite/27_io/basic_ios/copyfmt/char/1.cc b/libstdc++-v3/testsuite/27_io/basic_ios/copyfmt/char/1.cc index d922b1847bd..87551a08311 100644 --- a/libstdc++-v3/testsuite/27_io/basic_ios/copyfmt/char/1.cc +++ b/libstdc++-v3/testsuite/27_io/basic_ios/copyfmt/char/1.cc @@ -17,6 +17,9 @@ // with this library; see the file COPYING3. If not see // . +// 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. diff --git a/libstdc++-v3/testsuite/27_io/basic_ios/exceptions/char/1.cc b/libstdc++-v3/testsuite/27_io/basic_ios/exceptions/char/1.cc index a7f829a19cc..86b7bee35d3 100644 --- a/libstdc++-v3/testsuite/27_io/basic_ios/exceptions/char/1.cc +++ b/libstdc++-v3/testsuite/27_io/basic_ios/exceptions/char/1.cc @@ -17,6 +17,9 @@ // with this library; see the file COPYING3. If not see // . +// 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. diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/exceptions_failbit.cc b/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/exceptions_failbit.cc index ab4d7b139a8..2f1edf6e79c 100644 --- a/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/exceptions_failbit.cc +++ b/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/exceptions_failbit.cc @@ -15,6 +15,9 @@ // with this library; see the file COPYING3. If not see // . +// The library throws the new definition of std::ios::failure +// { dg-options "-D_GLIBCXX_USE_CXX11_ABI=1" } + #include #include diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/exceptions_failbit.cc b/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/exceptions_failbit.cc index f9537e05e44..7038565eb89 100644 --- a/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/exceptions_failbit.cc +++ b/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/exceptions_failbit.cc @@ -15,6 +15,9 @@ // with this library; see the file COPYING3. If not see // . +// The library throws the new definition of std::ios::failure +// { dg-options "-D_GLIBCXX_USE_CXX11_ABI=1" } + #include #include diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/extractors_other/char/exceptions_null.cc b/libstdc++-v3/testsuite/27_io/basic_istream/extractors_other/char/exceptions_null.cc index d508f0a2823..50c70f96378 100644 --- a/libstdc++-v3/testsuite/27_io/basic_istream/extractors_other/char/exceptions_null.cc +++ b/libstdc++-v3/testsuite/27_io/basic_istream/extractors_other/char/exceptions_null.cc @@ -15,6 +15,9 @@ // with this library; see the file COPYING3. If not see // . +// The library throws the new definition of std::ios::failure +// { dg-options "-D_GLIBCXX_USE_CXX11_ABI=1" } + #include #include #include diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/extractors_other/wchar_t/exceptions_null.cc b/libstdc++-v3/testsuite/27_io/basic_istream/extractors_other/wchar_t/exceptions_null.cc index 63b35706c84..0d8a3cd3f3a 100644 --- a/libstdc++-v3/testsuite/27_io/basic_istream/extractors_other/wchar_t/exceptions_null.cc +++ b/libstdc++-v3/testsuite/27_io/basic_istream/extractors_other/wchar_t/exceptions_null.cc @@ -15,6 +15,9 @@ // with this library; see the file COPYING3. If not see // . +// The library throws the new definition of std::ios::failure +// { dg-options "-D_GLIBCXX_USE_CXX11_ABI=1" } + #include #include #include diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/sentry/char/12297.cc b/libstdc++-v3/testsuite/27_io/basic_istream/sentry/char/12297.cc index bd99187580b..ceb92347e08 100644 --- a/libstdc++-v3/testsuite/27_io/basic_istream/sentry/char/12297.cc +++ b/libstdc++-v3/testsuite/27_io/basic_istream/sentry/char/12297.cc @@ -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 #include diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/sentry/wchar_t/12297.cc b/libstdc++-v3/testsuite/27_io/basic_istream/sentry/wchar_t/12297.cc index 86713dc021a..dc9d48a18d8 100644 --- a/libstdc++-v3/testsuite/27_io/basic_istream/sentry/wchar_t/12297.cc +++ b/libstdc++-v3/testsuite/27_io/basic_istream/sentry/wchar_t/12297.cc @@ -15,6 +15,9 @@ // with this library; see the file COPYING3. If not see // . +// 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 diff --git a/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_other/char/exceptions_null.cc b/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_other/char/exceptions_null.cc index a19cc3f80a2..ab9ef94da35 100644 --- a/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_other/char/exceptions_null.cc +++ b/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_other/char/exceptions_null.cc @@ -15,6 +15,9 @@ // with this library; see the file COPYING3. If not see // . +// The library throws the new definition of std::ios::failure +// { dg-options "-D_GLIBCXX_USE_CXX11_ABI=1" } + #include #include #include diff --git a/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_other/wchar_t/exceptions_null.cc b/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_other/wchar_t/exceptions_null.cc index e449837b73c..bba6dd0e3f1 100644 --- a/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_other/wchar_t/exceptions_null.cc +++ b/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_other/wchar_t/exceptions_null.cc @@ -15,6 +15,9 @@ // with this library; see the file COPYING3. If not see // . +// The library throws the new definition of std::ios::failure +// { dg-options "-D_GLIBCXX_USE_CXX11_ABI=1" } + #include #include #include diff --git a/libstdc++-v3/testsuite/27_io/ios_base/storage/2.cc b/libstdc++-v3/testsuite/27_io/ios_base/storage/2.cc index a5b9f64c66a..d2c9ec50e53 100644 --- a/libstdc++-v3/testsuite/27_io/ios_base/storage/2.cc +++ b/libstdc++-v3/testsuite/27_io/ios_base/storage/2.cc @@ -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 #include #include