]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Update expected error for debug/constexpr*_neg.cc tests
authorJonathan Wakely <jwakely@redhat.com>
Wed, 31 Jan 2024 09:38:36 +0000 (09:38 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Thu, 1 Feb 2024 15:26:53 +0000 (15:26 +0000)
We no longer hit a __builtin_unreachable() in these tests, so we need to
update the dg-error patterns to match _Error_formatter::_M_error().

We can also remove some dg-prune-output directives matching notes saying
"in 'constexpr' expansion" because that's done globally in prune.exp.

libstdc++-v3/ChangeLog:

* testsuite/25_algorithms/copy/debug/constexpr_neg.cc: Adjust
dg-error pattern.
* testsuite/25_algorithms/copy_backward/debug/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.

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/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 2922d1ab1f931107f622fc088551d812b5c0697f..6ae37b87ac5fceac986b4005bf7cb503077eeba4 100644 (file)
@@ -33,7 +33,7 @@ test1()
 }
 
 static_assert(test1()); // { dg-error "non-constant condition" }
-// { dg-error "builtin_unreachable" "" { target *-*-* } 0 }
+// { dg-error "_Error_formatter::_M_error()" "" { target *-*-* } 0 }
 
 constexpr bool
 test2()
index 4b55b835ab4860567e9b780296ec464a065b1822..52259aa50aa65d646ba077aa60eda859a399f685 100644 (file)
@@ -35,5 +35,4 @@ test()
 
 static_assert(test()); // { dg-error "non-constant condition" }
 
-// { dg-prune-output "in 'constexpr' expansion" }
-// { dg-prune-output "builtin_unreachable" }
+// { dg-prune-output "_Error_formatter::_M_error()" }
index 8fb225ecc85d581546202a479ff2eadc18c85224..82ec49c6f406f3e49c7dee52a80c0705904f6cc5 100644 (file)
@@ -32,7 +32,7 @@ test01()
 }
 
 static_assert(test01()); // { dg-error "non-constant condition" }
-// { dg-error "builtin_unreachable" "" { target *-*-* } 0 }
+// { dg-error "_Error_formatter::_M_error()" "" { target *-*-* } 0 }
 
 constexpr bool
 test02()
index 184ae22ae24a0f2288ed94e99471a533118e9c89..8c2819d05548e424744d347c854fb8910e8c7109 100644 (file)
@@ -43,5 +43,5 @@ test()
 
 static_assert(test()); // { dg-error "" }
 
-// { dg-prune-output "builtin_unreachable" }
+// { dg-prune-output "_Error_formatter::_M_error()" }
 // { dg-prune-output "in 'constexpr'" }
index f7b2b7231d9a28470597e59129861a25ee8976b9..ab27cb17fb1b1cc4783103c93376bce7b0f96ea8 100644 (file)
@@ -33,5 +33,4 @@ test()
 
 static_assert(test()); // { dg-error "" }
 
-// { dg-prune-output "builtin_unreachable" }
-// { dg-prune-output "in 'constexpr'" }
+// { dg-prune-output "_Error_formatter::_M_error()" }
index 6996950d686922ab32b2e6adf91f4e900d482dd9..9fd3bcc070d73c93a63c7f27ff701c237d0a1c9f 100644 (file)
@@ -46,6 +46,5 @@ test2()
 
 static_assert(test2()); // { dg-error "" }
 
-// { dg-prune-output "builtin_unreachable" }
-// { dg-prune-output "in 'constexpr'" }
+// { dg-prune-output "_Error_formatter::_M_error()" }
 
index b4e56df91748a7c4fc2c57ec25f2e8d7daf2681b..c1ee761f51e8668180dc787e2920e6684a1009f7 100644 (file)
@@ -43,5 +43,4 @@ test()
 
 static_assert(test()); // { dg-error "" }
 
-// { dg-prune-output "builtin_unreachable" }
-// { dg-prune-output "in 'constexpr'" }
+// { dg-prune-output "_Error_formatter::_M_error()" }
index 1ffeb326bfc8eb7768909ac9ef15384555bf2126..85fcde40b37128074693693fcb4a36fea98b9e4b 100644 (file)
@@ -33,5 +33,4 @@ test()
 
 static_assert(test()); // { dg-error "" }
 
-// { dg-prune-output "builtin_unreachable" }
-// { dg-prune-output "in 'constexpr'" }
+// { dg-prune-output "_Error_formatter::_M_error()" }
index 5b0e651d077a798247bf8058c73deca28899c34e..446073c314bb4a50fc416500d71510e5109ce112 100644 (file)
@@ -46,5 +46,4 @@ test2()
 
 static_assert(test2()); // { dg-error "" }
 
-// { dg-prune-output "builtin_unreachable" }
-// { dg-prune-output "in 'constexpr'" }
+// { dg-prune-output "_Error_formatter::_M_error()" }