libstdc++: Remove dg-options "-std=gnu++20" from 27_io tests

The testsuite will automatically select C++20 for these tests now, and
removing the hardcoded -std option allows them to be tested for C++23
and C++26 as well.

libstdc++-v3/ChangeLog:

	* testsuite/27_io/basic_istream/extractors_character/char/lwg2499.cc:
	Remove dg-options -std=gnu++2a.
	* testsuite/27_io/basic_istream/extractors_character/char/lwg2499_neg.cc:
	Likewise.
	* testsuite/27_io/basic_istream/extractors_character/wchar_t/lwg2499.cc:
	Likewise.
	* testsuite/27_io/basic_istream/extractors_character/wchar_t/lwg2499_neg.cc:
	Likewise.
	* testsuite/27_io/basic_istringstream/cons/char/1.cc: Likewise.
	* testsuite/27_io/basic_istringstream/cons/wchar_t/1.cc:
	Likewise.
	* testsuite/27_io/basic_istringstream/str/char/2.cc: Likewise.
	* testsuite/27_io/basic_istringstream/str/wchar_t/2.cc:
	Likewise.
	* testsuite/27_io/basic_istringstream/view/char/1.cc: Likewise.
	* testsuite/27_io/basic_istringstream/view/wchar_t/1.cc:
	Likewise.
	* testsuite/27_io/basic_ostream/emit/1.cc: Likewise.
	* testsuite/27_io/basic_ostream/inserters_character/char/deleted.cc:
	Likewise.
	* testsuite/27_io/basic_ostream/inserters_character/wchar_t/deleted.cc:
	Likewise.
	* testsuite/27_io/basic_ostringstream/cons/char/1.cc: Likewise.
	* testsuite/27_io/basic_ostringstream/cons/wchar_t/1.cc:
	Likewise.
	* testsuite/27_io/basic_ostringstream/str/char/3.cc: Likewise.
	* testsuite/27_io/basic_ostringstream/str/wchar_t/3.cc:
	Likewise.
	* testsuite/27_io/basic_ostringstream/view/char/1.cc: Likewise.
	* testsuite/27_io/basic_ostringstream/view/wchar_t/1.cc:
	Likewise.
	* testsuite/27_io/basic_stringbuf/cons/char/2.cc: Likewise.
	* testsuite/27_io/basic_stringbuf/cons/wchar_t/2.cc: Likewise.
	* testsuite/27_io/basic_stringbuf/str/char/4.cc: Likewise.
	* testsuite/27_io/basic_stringbuf/str/wchar_t/4.cc: Likewise.
	* testsuite/27_io/basic_stringbuf/view/char/1.cc: Likewise.
	* testsuite/27_io/basic_stringbuf/view/wchar_t/1.cc: Likewise.
	* testsuite/27_io/basic_stringstream/cons/char/1.cc: Likewise.
	* testsuite/27_io/basic_stringstream/cons/char/97719.cc:
	Likewise.
	* testsuite/27_io/basic_stringstream/cons/wchar_t/1.cc:
	Likewise.
	* testsuite/27_io/basic_stringstream/str/char/5.cc: Likewise.
	* testsuite/27_io/basic_stringstream/str/wchar_t/5.cc.cc:
	Likewise.
	* testsuite/27_io/basic_stringstream/view/char/1.cc: Likewise.
	* testsuite/27_io/basic_stringstream/view/wchar_t/1.cc:
	Likewise.
	* testsuite/27_io/basic_syncbuf/1.cc: Likewise.
	* testsuite/27_io/basic_syncbuf/2.cc: Likewise.
	* testsuite/27_io/basic_syncbuf/basic_ops/1.cc: Likewise.
	* testsuite/27_io/basic_syncbuf/requirements/types.cc: Likewise.
	* testsuite/27_io/basic_syncbuf/sync_ops/1.cc: Likewise.
	* testsuite/27_io/basic_syncstream/1.cc: Likewise.
	* testsuite/27_io/basic_syncstream/2.cc: Likewise.
	* testsuite/27_io/basic_syncstream/basic_ops/1.cc: Likewise.
	* testsuite/27_io/basic_syncstream/requirements/types.cc:
	Likewise.
	* testsuite/27_io/filesystem/iterators/106201.cc: Likewise.
	* testsuite/27_io/filesystem/iterators/lwg3719.cc: Likewise.
	* testsuite/27_io/filesystem/path/factory/u8path-depr.cc:
	Likewise.
	* testsuite/27_io/filesystem/path/nonmember/cmp_c++20.cc:
	Likewise.
This commit is contained in:
Jonathan Wakely 2023-09-15 14:27:56 +01:00
parent bb2dd7619f
commit f1b06f571d
45 changed files with 42 additions and 87 deletions

View file

@ -15,8 +15,7 @@
// with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>.
// { dg-options "-std=gnu++2a" }
// { dg-do run { target c++2a } }
// { dg-do run { target c++20 } }
// LWG 2499
// operator>>(basic_istream&, CharT*) makes it hard to avoid buffer overflows

View file

@ -15,8 +15,7 @@
// with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>.
// { dg-options "-std=gnu++2a" }
// { dg-do compile { target c++2a } }
// { dg-do compile { target c++20 } }
// LWG 2499
// operator>>(basic_istream&, CharT*) makes it hard to avoid buffer overflows

View file

@ -15,8 +15,7 @@
// with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>.
// { dg-options "-std=gnu++2a" }
// { dg-do run { target c++2a } }
// { dg-do run { target c++20 } }
// LWG 2499
// operator>>(basic_istream&, CharT*) makes it hard to avoid buffer overflows

View file

@ -15,8 +15,7 @@
// with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>.
// { dg-options "-std=gnu++2a" }
// { dg-do compile { target c++2a } }
// { dg-do compile { target c++20 } }
// LWG 2499
// operator>>(basic_istream&, CharT*) makes it hard to avoid buffer overflows

View file

@ -17,8 +17,7 @@
// C++20 29.8.3.2 basic_istringstream constructors [istringstream.cons]
// { dg-options "-std=gnu++2a" }
// { dg-do run { target c++2a } }
// { dg-do run { target c++20 } }
// { dg-require-effective-target cxx11_abi }
#include <sstream>

View file

@ -17,8 +17,7 @@
// C++20 29.8.3.2 basic_istringstream constructors [istringstream.cons]
// { dg-options "-std=gnu++2a" }
// { dg-do run { target c++2a } }
// { dg-do run { target c++20 } }
// { dg-require-effective-target cxx11_abi }
#include <sstream>

View file

@ -17,8 +17,7 @@
// 29.8.3.4 basic_istringstream member functions [istringstream.members]
// { dg-options "-std=gnu++2a" }
// { dg-do run { target c++2a } }
// { dg-do run { target c++20 } }
// { dg-require-effective-target cxx11_abi }
#include <sstream>

View file

@ -17,8 +17,7 @@
// 29.8.3.4 basic_istringstream member functions [istringstream.members]
// { dg-options "-std=gnu++2a" }
// { dg-do run { target c++2a } }
// { dg-do run { target c++20 } }
// { dg-require-effective-target cxx11_abi }
#include <sstream>

View file

@ -17,8 +17,7 @@
// 29.8.3.4 basic_istringstream member functions [istringstream.members]
// { dg-options "-std=gnu++2a" }
// { dg-do run { target c++2a } }
// { dg-do run { target c++20 } }
#include <sstream>
#include <string_view>

View file

@ -17,8 +17,7 @@
// 27.7.1.1 basic_stringbuf constructors [lib.stringbuf.cons]
// { dg-options "-std=gnu++2a" }
// { dg-do run { target c++2a } }
// { dg-do run { target c++20 } }
#include <sstream>
#include <string_view>

View file

@ -15,9 +15,8 @@
// with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>.
// { dg-options "-std=gnu++2a" }
// { dg-additional-options "-pthread" { target pthread } }
// { dg-do run { target c++2a } }
// { dg-do run { target c++20 } }
// { dg-require-effective-target cxx11_abi }
// { dg-require-effective-target rtti }

View file

@ -19,8 +19,7 @@
// Test character inserters defined as deleted by P1423.
// { dg-options "-std=gnu++2a" }
// { dg-do compile { target c++2a } }
// { dg-do compile { target c++20 } }
#include <ostream>

View file

@ -19,8 +19,7 @@
// Test wide character inserters defined as deleted by P1423.
// { dg-options "-std=gnu++2a" }
// { dg-do compile { target c++2a } }
// { dg-do compile { target c++20 } }
#include <ostream>

View file

@ -17,8 +17,7 @@
// C++20 29.8.4.2 basic_ostringstream constructors [ostringstream.cons]
// { dg-options "-std=gnu++2a" }
// { dg-do run { target c++2a } }
// { dg-do run { target c++20 } }
// { dg-require-effective-target cxx11_abi }
#include <sstream>

View file

@ -17,8 +17,7 @@
// C++20 29.8.4.2 basic_ostringstream constructors [ostringstream.cons]
// { dg-options "-std=gnu++2a" }
// { dg-do run { target c++2a } }
// { dg-do run { target c++20 } }
// { dg-require-effective-target cxx11_abi }
#include <sstream>

View file

@ -17,8 +17,7 @@
// 29.8.4.4 basic_ostringstream member functions [ostringstream.members]
// { dg-options "-std=gnu++2a" }
// { dg-do run { target c++2a } }
// { dg-do run { target c++20 } }
// { dg-require-effective-target cxx11_abi }
#include <sstream>

View file

@ -17,8 +17,7 @@
// 29.8.4.4 basic_ostringstream member functions [ostringstream.members]
// { dg-options "-std=gnu++2a" }
// { dg-do run { target c++2a } }
// { dg-do run { target c++20 } }
// { dg-require-effective-target cxx11_abi }
#include <sstream>

View file

@ -17,8 +17,7 @@
// 29.8.4.4 basic_ostringstream member functions [ostringstream.members]
// { dg-options "-std=gnu++2a" }
// { dg-do run { target c++2a } }
// { dg-do run { target c++20 } }
#include <sstream>
#include <string_view>

View file

@ -17,8 +17,7 @@
// 29.8.4.4 basic_ostringstream member functions [ostringstream.members]
// { dg-options "-std=gnu++2a" }
// { dg-do run { target c++2a } }
// { dg-do run { target c++20 } }
#include <sstream>
#include <string_view>

View file

@ -17,8 +17,7 @@
// C++20 29.8.2.2 basic_stringbuf constructors [stringbuf.cons]
// { dg-options "-std=gnu++2a" }
// { dg-do run { target c++2a } }
// { dg-do run { target c++20 } }
// { dg-require-effective-target cxx11_abi }
#include <sstream>

View file

@ -17,8 +17,7 @@
// C++20 29.8.2.2 basic_stringbuf constructors [stringbuf.cons]
// { dg-options "-std=gnu++2a" }
// { dg-do run { target c++2a } }
// { dg-do run { target c++20 } }
// { dg-require-effective-target cxx11_abi }
#include <sstream>

View file

@ -17,8 +17,7 @@
// 29.8.2.4 basic_stringbuf member functions [stringbuf.members]
// { dg-options "-std=gnu++2a" }
// { dg-do run { target c++2a } }
// { dg-do run { target c++20 } }
// { dg-require-effective-target cxx11_abi }
#include <sstream>

View file

@ -17,8 +17,7 @@
// 29.8.2.4 basic_stringbuf member functions [stringbuf.members]
// { dg-options "-std=gnu++2a" }
// { dg-do run { target c++2a } }
// { dg-do run { target c++20 } }
// { dg-require-effective-target cxx11_abi }
#include <sstream>

View file

@ -17,8 +17,7 @@
// 27.7.1.1 basic_stringbuf constructors [lib.stringbuf.cons]
// { dg-options "-std=gnu++2a" }
// { dg-do run { target c++2a } }
// { dg-do run { target c++20 } }
#include <sstream>
#include <string_view>

View file

@ -17,8 +17,7 @@
// 27.7.1.1 basic_stringbuf constructors [lib.stringbuf.cons]
// { dg-options "-std=gnu++2a" }
// { dg-do run { target c++2a } }
// { dg-do run { target c++20 } }
#include <sstream>
#include <string_view>

View file

@ -17,8 +17,7 @@
// C++20 29.8.5.2 basic_stringstream constructors [stringstream.cons]
// { dg-options "-std=gnu++2a" }
// { dg-do run { target c++2a } }
// { dg-do run { target c++20 } }
// { dg-require-effective-target cxx11_abi }
#include <sstream>

View file

@ -15,8 +15,7 @@
// with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>.
// { dg-options "-std=gnu++2a" }
// { dg-do run { target c++2a } }
// { dg-do run { target c++20 } }
#include <sstream>
#include <iterator>

View file

@ -17,8 +17,7 @@
// C++20 29.8.5.2 basic_stringstream constructors [stringstream.cons]
// { dg-options "-std=gnu++2a" }
// { dg-do run { target c++2a } }
// { dg-do run { target c++20 } }
// { dg-require-effective-target cxx11_abi }
#include <sstream>

View file

@ -17,8 +17,7 @@
// 29.8.5.4 basic_stringstream member functions [stringstream.members]
// { dg-options "-std=gnu++2a" }
// { dg-do run { target c++2a } }
// { dg-do run { target c++20 } }
// { dg-require-effective-target cxx11_abi }
#include <sstream>

View file

@ -17,8 +17,7 @@
// 29.8.5.4 basic_stringstream member functions [stringstream.members]
// { dg-options "-std=gnu++2a" }
// { dg-do run { target c++2a } }
// { dg-do run { target c++20 } }
// { dg-require-effective-target cxx11_abi }
#include <sstream>

View file

@ -17,8 +17,7 @@
// 29.8.5.4 basic_stringstream member functions [stringstream.members]
// { dg-options "-std=gnu++2a" }
// { dg-do run { target c++2a } }
// { dg-do run { target c++20 } }
#include <sstream>
#include <string_view>

View file

@ -17,8 +17,7 @@
// 27.7.1.1 basic_stringbuf constructors [lib.stringbuf.cons]
// { dg-options "-std=gnu++2a" }
// { dg-do run { target c++2a } }
// { dg-do run { target c++20 } }
#include <sstream>
#include <string_view>

View file

@ -15,8 +15,7 @@
// with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>.
// { dg-options "-std=gnu++2a" }
// { dg-do compile { target c++2a } }
// { dg-do compile { target c++20 } }
// { dg-require-effective-target cxx11_abi }
#include <syncstream>

View file

@ -15,8 +15,7 @@
// with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>.
// { dg-options "-std=gnu++2a" }
// { dg-do compile { target c++2a } }
// { dg-do compile { target c++20 } }
// { dg-require-effective-target cxx11_abi }
// { dg-require-effective-target hosted }

View file

@ -15,9 +15,8 @@
// with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>.
// { dg-options "-std=gnu++2a" }
// { dg-additional-options "-pthread" { target pthread } }
// { dg-do run { target c++2a } }
// { dg-do run { target c++20 } }
// { dg-require-effective-target cxx11_abi }
#include <sstream>

View file

@ -15,8 +15,7 @@
// with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>.
// { dg-options "-std=gnu++2a" }
// { dg-do compile { target c++2a } }
// { dg-do compile { target c++20 } }
// { dg-require-effective-target cxx11_abi }
#include <syncstream>

View file

@ -15,8 +15,7 @@
// with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>.
// { dg-options "-std=gnu++2a" }
// { dg-do run { target c++2a } }
// { dg-do run { target c++20 } }
// { dg-require-effective-target cxx11_abi }
// { dg-require-gthreads "" }
// { dg-add-options libatomic }

View file

@ -15,8 +15,7 @@
// with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>.
// { dg-options "-std=gnu++2a" }
// { dg-do compile { target c++2a } }
// { dg-do compile { target c++20 } }
// { dg-require-effective-target cxx11_abi }
#include <syncstream>

View file

@ -15,8 +15,7 @@
// with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>.
// { dg-options "-std=gnu++2a" }
// { dg-do compile { target c++2a } }
// { dg-do compile { target c++20 } }
// { dg-require-effective-target cxx11_abi }
// { dg-require-effective-target hosted }

View file

@ -15,9 +15,8 @@
// with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>.
// { dg-options "-std=gnu++2a" }
// { dg-additional-options "-pthread" { target pthread } }
// { dg-do run { target c++2a } }
// { dg-do run { target c++20 } }
// { dg-require-effective-target cxx11_abi }
#include <sstream>

View file

@ -15,8 +15,7 @@
// with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>.
// { dg-options "-std=gnu++2a" }
// { dg-do compile { target c++2a } }
// { dg-do compile { target c++20 } }
// { dg-require-effective-target cxx11_abi }
#include <syncstream>

View file

@ -1,4 +1,3 @@
// { dg-options "-std=gnu++20" }
// { dg-do compile { target c++20 } }
// { dg-require-filesystem-ts "" }

View file

@ -1,4 +1,3 @@
// { dg-options "-std=gnu++20" }
// { dg-do run { target c++20 } }
// { dg-require-filesystem-ts "" }

View file

@ -1,4 +1,3 @@
// { dg-options "-std=gnu++20" }
// { dg-do compile { target c++20 } }
#include <filesystem>

View file

@ -1,5 +1,4 @@
// { dg-options "-std=gnu++2a" }
// { dg-do run { target c++2a } }
// { dg-do run { target c++20 } }
// Copyright (C) 2020-2023 Free Software Foundation, Inc.
//