libstdc++: Replace dg-options "-std=c++11" with dg-add-options strict_std

These tests can (and should) also be run for later standards, so replace
the { dg-options "-std=c++11" } with { dg-add-options strict_std } and a
target selector for c++11.

libstdc++-v3/ChangeLog:

	* testsuite/23_containers/deque/48101-2_neg.cc: Replace
	dg-options with target selector.
	* testsuite/23_containers/forward_list/48101-2_neg.cc: Likewise.
	* testsuite/23_containers/list/48101-2_neg.cc: Likewise.
	* testsuite/23_containers/map/48101-2_neg.cc: Likewise.
	* testsuite/23_containers/map/48101_neg.cc: Likewise.
	* testsuite/23_containers/multimap/48101-2_neg.cc: Likewise.
	* testsuite/23_containers/multimap/48101_neg.cc: Likewise.
	* testsuite/23_containers/multiset/48101-2_neg.cc: Likewise.
	* testsuite/23_containers/set/48101-2_neg.cc: Likewise.
	* testsuite/23_containers/unordered_map/48101-2_neg.cc:
	Likewise.
	* testsuite/23_containers/unordered_multimap/48101-2_neg.cc:
	Likewise.
	* testsuite/23_containers/unordered_multiset/48101-2_neg.cc:
	Likewise.
	* testsuite/23_containers/unordered_set/48101-2_neg.cc:
	Likewise.
	* testsuite/23_containers/vector/48101-2_neg.cc: Likewise.
This commit is contained in:
Jonathan Wakely 2023-09-04 14:10:15 +01:00
parent 3a0e01f6bb
commit 52841fb703
14 changed files with 26 additions and 28 deletions

View file

@ -15,8 +15,8 @@
// with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>.
// { dg-do compile }
// { dg-options "-std=c++11" }
// { dg-do compile { target c++11 } }
// { dg-add-options strict_std }
#include <deque>

View file

@ -15,8 +15,8 @@
// with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>.
// { dg-do compile }
// { dg-options "-std=c++11" }
// { dg-do compile { target c++11 } }
// { dg-add-options strict_std }
#include <forward_list>

View file

@ -15,8 +15,8 @@
// with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>.
// { dg-do compile }
// { dg-options "-std=c++11" }
// { dg-do compile { target c++11 } }
// { dg-add-options strict_std }
#include <list>

View file

@ -15,8 +15,8 @@
// with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>.
// { dg-do compile }
// { dg-options "-std=c++11" }
// { dg-do compile { target c++11 } }
// { dg-add-options strict_std }
#include <map>

View file

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

View file

@ -15,8 +15,8 @@
// with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>.
// { dg-do compile }
// { dg-options "-std=c++11" }
// { dg-do compile { target c++11 } }
// { dg-add-options strict_std }
#include <map>

View file

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

View file

@ -15,8 +15,8 @@
// with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>.
// { dg-do compile }
// { dg-options "-std=c++11" }
// { dg-do compile { target c++11 } }
// { dg-add-options strict_std }
#include <set>

View file

@ -15,8 +15,8 @@
// with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>.
// { dg-do compile }
// { dg-options "-std=c++11" }
// { dg-do compile { target c++11 } }
// { dg-add-options strict_std }
#include <set>

View file

@ -15,8 +15,8 @@
// with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>.
// { dg-do compile }
// { dg-options "-std=c++11" }
// { dg-do compile { target c++11 } }
// { dg-add-options strict_std }
#include <unordered_map>

View file

@ -15,8 +15,8 @@
// with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>.
// { dg-do compile }
// { dg-options "-std=c++11" }
// { dg-do compile { target c++11 } }
// { dg-add-options strict_std }
#include <unordered_map>

View file

@ -15,8 +15,8 @@
// with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>.
// { dg-do compile }
// { dg-options "-std=c++11" }
// { dg-do compile { target c++11 } }
// { dg-add-options strict_std }
#include <unordered_set>

View file

@ -15,8 +15,8 @@
// with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>.
// { dg-do compile }
// { dg-options "-std=c++11" }
// { dg-do compile { target c++11 } }
// { dg-add-options strict_std }
#include <unordered_set>

View file

@ -15,8 +15,8 @@
// with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>.
// { dg-do compile }
// { dg-options "-std=c++11" }
// { dg-do compile { target c++11 } }
// { dg-add-options strict_std }
#include <vector>