libstdc++: Remove redundant xfail selectors in dg-do compile tests

An 'xfail' selector means the test is expected to fail at runtime, so is
ignored for a compile-only test. The way to mark a compile-only test as
failing is with dg-error (which these already do).

libstdc++-v3/ChangeLog:

	* testsuite/21_strings/basic_string_view/element_access/char/back_constexpr_neg.cc:
	Remove xfail selector.
	* testsuite/21_strings/basic_string_view/element_access/char/constexpr_neg.cc:
	Likewise.
	Likewise.
	* testsuite/21_strings/basic_string_view/element_access/char/front_constexpr_neg.cc:
	Likewise.
	* testsuite/21_strings/basic_string_view/element_access/wchar_t/back_constexpr_neg.cc:
	Likewise.
	* testsuite/21_strings/basic_string_view/element_access/wchar_t/constexpr_neg.cc:
	Likewise.
	* testsuite/21_strings/basic_string_view/element_access/wchar_t/front_constexpr_neg.cc:
	Likewise.
	* testsuite/23_containers/span/101411.cc: Likewise.
	* testsuite/25_algorithms/copy/debug/constexpr_neg.cc: Likewise.
	* testsuite/25_algorithms/copy_backward/debug/constexpr_neg.cc:
	Likewise.
	* testsuite/25_algorithms/equal/constexpr_neg.cc: Likewise.
	* testsuite/25_algorithms/equal/debug/constexpr_neg.cc: Likewise.
	* testsuite/25_algorithms/lower_bound/debug/constexpr_partitioned_neg.cc:
	Likewise.
	* testsuite/25_algorithms/lower_bound/debug/constexpr_partitioned_pred_neg.cc:
	Likewise.
	* testsuite/25_algorithms/lower_bound/debug/constexpr_valid_range_neg.cc:
	Likewise.
	* testsuite/25_algorithms/upper_bound/debug/constexpr_partitioned_neg.cc:
	Likewise.
	* testsuite/25_algorithms/upper_bound/debug/constexpr_partitioned_pred_neg.cc:
	Likewise.
	* testsuite/25_algorithms/upper_bound/debug/constexpr_valid_range_neg.cc:
	Likewise.
This commit is contained in:
Jonathan Wakely 2021-11-26 13:55:32 +00:00
parent f1ec39c86c
commit 1ecc9ba578
17 changed files with 17 additions and 17 deletions

View File

@ -16,7 +16,7 @@
// <http://www.gnu.org/licenses/>.
// { dg-options "-D_GLIBCXX_ASSERTIONS" }
// { dg-do compile { target c++17 xfail *-*-* } }
// { dg-do compile { target c++17 } }
#include <string_view>

View File

@ -16,7 +16,7 @@
// <http://www.gnu.org/licenses/>.
// { dg-options "-D_GLIBCXX_ASSERTIONS" }
// { dg-do compile { target c++17 xfail *-*-* } }
// { dg-do compile { target c++17 } }
#include <string_view>

View File

@ -16,7 +16,7 @@
// <http://www.gnu.org/licenses/>.
// { dg-options "-D_GLIBCXX_ASSERTIONS" }
// { dg-do compile { target c++17 xfail *-*-* } }
// { dg-do compile { target c++17 } }
#include <string_view>

View File

@ -16,7 +16,7 @@
// <http://www.gnu.org/licenses/>.
// { dg-options "-D_GLIBCXX_ASSERTIONS" }
// { dg-do compile { target c++17 xfail *-*-* } }
// { dg-do compile { target c++17 } }
#include <string_view>

View File

@ -16,7 +16,7 @@
// <http://www.gnu.org/licenses/>.
// { dg-options "-D_GLIBCXX_ASSERTIONS" }
// { dg-do compile { target c++17 xfail *-*-* } }
// { dg-do compile { target c++17 } }
#include <string_view>

View File

@ -16,7 +16,7 @@
// <http://www.gnu.org/licenses/>.
// { dg-options "-D_GLIBCXX_ASSERTIONS" }
// { dg-do compile { target c++17 xfail *-*-* } }
// { dg-do compile { target c++17 } }
#include <string_view>

View File

@ -1,5 +1,5 @@
// { dg-options "-std=gnu++20" }
// { dg-do compile { xfail c++20 } }
// { dg-do compile { target c++20 } }
#include <span>
// PR libstdc++/101411

View File

@ -16,7 +16,7 @@
// <http://www.gnu.org/licenses/>.
// { dg-options "-std=gnu++2a" }
// { dg-do compile { target c++2a xfail *-*-* } }
// { dg-do compile { target c++2a } }
// { dg-require-debug-mode "" }
#include <algorithm>

View File

@ -16,7 +16,7 @@
// <http://www.gnu.org/licenses/>.
// { dg-options "-std=gnu++2a" }
// { dg-do compile { target c++2a xfail *-*-* } }
// { dg-do compile { target c++2a } }
// { dg-require-debug-mode "" }
#include <algorithm>

View File

@ -16,7 +16,7 @@
// <http://www.gnu.org/licenses/>.
// { dg-options "-std=gnu++2a" }
// { dg-do compile { target c++2a xfail *-*-* } }
// { dg-do compile { target c++2a } }
// { dg-require-normal-mode "" }
#include <algorithm>

View File

@ -16,7 +16,7 @@
// <http://www.gnu.org/licenses/>.
// { dg-options "-std=gnu++2a" }
// { dg-do compile { target c++2a xfail *-*-* } }
// { dg-do compile { target c++2a } }
// { dg-require-debug-mode "" }
#include <algorithm>

View File

@ -16,7 +16,7 @@
// <http://www.gnu.org/licenses/>.
// { dg-options "-std=gnu++2a" }
// { dg-do compile { target c++2a xfail *-*-* } }
// { dg-do compile { target c++2a } }
// { dg-require-debug-mode { } }
#include <algorithm>

View File

@ -16,7 +16,7 @@
// <http://www.gnu.org/licenses/>.
// { dg-options "-std=gnu++2a" }
// { dg-do compile { target c++2a xfail *-*-* } }
// { dg-do compile { target c++2a } }
// { dg-require-debug-mode { } }
#include <algorithm>

View File

@ -16,7 +16,7 @@
// <http://www.gnu.org/licenses/>.
// { dg-options "-std=gnu++2a" }
// { dg-do compile { target c++2a xfail *-*-* } }
// { dg-do compile { target c++2a } }
// { dg-require-debug-mode { } }
#include <algorithm>

View File

@ -16,7 +16,7 @@
// <http://www.gnu.org/licenses/>.
// { dg-options "-std=gnu++2a" }
// { dg-do compile { target c++2a xfail *-*-* } }
// { dg-do compile { target c++2a } }
// { dg-require-debug-mode { } }
#include <algorithm>

View File

@ -16,7 +16,7 @@
// <http://www.gnu.org/licenses/>.
// { dg-options "-std=gnu++2a" }
// { dg-do compile { target c++2a xfail *-*-* } }
// { dg-do compile { target c++2a } }
// { dg-require-debug-mode { } }
#include <algorithm>

View File

@ -16,7 +16,7 @@
// <http://www.gnu.org/licenses/>.
// { dg-options "-std=gnu++2a" }
// { dg-do compile { target c++2a xfail *-*-* } }
// { dg-do compile { target c++2a } }
// { dg-require-debug-mode { } }
#include <algorithm>