]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Remove redundant xfail selectors in dg-do compile tests
authorJonathan Wakely <jwakely@redhat.com>
Fri, 26 Nov 2021 13:55:32 +0000 (13:55 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Fri, 26 Nov 2021 15:11:58 +0000 (15:11 +0000)
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.

17 files changed:
libstdc++-v3/testsuite/21_strings/basic_string_view/element_access/char/back_constexpr_neg.cc
libstdc++-v3/testsuite/21_strings/basic_string_view/element_access/char/constexpr_neg.cc
libstdc++-v3/testsuite/21_strings/basic_string_view/element_access/char/front_constexpr_neg.cc
libstdc++-v3/testsuite/21_strings/basic_string_view/element_access/wchar_t/back_constexpr_neg.cc
libstdc++-v3/testsuite/21_strings/basic_string_view/element_access/wchar_t/constexpr_neg.cc
libstdc++-v3/testsuite/21_strings/basic_string_view/element_access/wchar_t/front_constexpr_neg.cc
libstdc++-v3/testsuite/23_containers/span/101411.cc
libstdc++-v3/testsuite/25_algorithms/copy/debug/constexpr_neg.cc
libstdc++-v3/testsuite/25_algorithms/copy_backward/debug/constexpr_neg.cc
libstdc++-v3/testsuite/25_algorithms/equal/constexpr_neg.cc
libstdc++-v3/testsuite/25_algorithms/equal/debug/constexpr_neg.cc
libstdc++-v3/testsuite/25_algorithms/lower_bound/debug/constexpr_partitioned_neg.cc
libstdc++-v3/testsuite/25_algorithms/lower_bound/debug/constexpr_partitioned_pred_neg.cc
libstdc++-v3/testsuite/25_algorithms/lower_bound/debug/constexpr_valid_range_neg.cc
libstdc++-v3/testsuite/25_algorithms/upper_bound/debug/constexpr_partitioned_neg.cc
libstdc++-v3/testsuite/25_algorithms/upper_bound/debug/constexpr_partitioned_pred_neg.cc
libstdc++-v3/testsuite/25_algorithms/upper_bound/debug/constexpr_valid_range_neg.cc

index 2da90bd954e2ece64f7d3b829d10008d0f5775cc..dac116da003f89702af7f628fb61f289eed1b913 100644 (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>
 
index 844b62277c5fff05d924ae351c785b8d471f5a8d..8918f7eaf1069b9c02a33602989ffa3bf9f2844b 100644 (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>
 
index d6dceb61a34cf646c02cefdedaf107dce37f8e2c..923b938b3fbded618eb5a29426fe9413e793ec6b 100644 (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>
 
index 798e1a4074de7d8b3d675f67403865fa90633ea2..73a8a1a32f79c006e5b68e41ea6b908c7423ec0b 100644 (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>
 
index 0e22b766b3dea48ae08af42da44f87067c0024aa..b8c4c78b09e3fe485d8de6d41c36ef25e3511043 100644 (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>
 
index f49774a0bdd47eecc7f2d2bd87c65f404c6125b5..19d00cc377968a5ca20c7a81a5f35d775c6ec5f5 100644 (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>
 
index 05bdd3badbdbaefb3a436f296f14f2e3e5e580b4..dbc13c5c75fbddff399e3c9383a6888e49aa58aa 100644 (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
index 4f324038a10177956618cf749cb7c6be1981e1d8..9a384ef6fef19bb224640066519c043fee66f170 100644 (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>
index 05183cff16ae0aaff3ce25a3d2a8555cc853d572..65c36edd607538bffdb80e26e0e18ee280044f20 100644 (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>
index b4fe79a0f237dec0bb73c1038d2cf233c76a2bc7..0306a767c6f376fe41c551bee2f858192ad40cdf 100644 (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>
index 44f9fb970d8377e1e9ab18da5592786d2513f3a4..be83f96f6d266333067e57e8547f28bc50c12888 100644 (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>
index 56d80d61ae297ee572f334b57e039d3faf0a0f8e..16d766a6a5d893c6b20b5ed078ac6c6f95b42045 100644 (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>
index ab931bbc731538ed834c1627dd592610133536e3..0c38da2fee16434951d163253093081007bd0113 100644 (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>
index fee67e521729b5b7b56bfaf56a35d6ce8d5752cb..c9212aac5cbc008b6d4f4f35965fdce10e9c04ac 100644 (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>
index 7937ac8d3084f8eba49433af939dc085a62576b7..0e956074b82c838598e891f3f319f72edc6f9cd6 100644 (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>
index 7d33eb535faf685e7f15bbf9d05623edbac472ae..589a01cc404de401cc41ca42ac528fd2ccdebbe3 100644 (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>
index 9c2d065720849b966892b9081467d8f1b748796d..4446abbc8c24908d7b3bf6916963ce309b22d3f1 100644 (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>