public inbox for libstdc++-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-8701] libstdc++: Update expected error for debug/constexpr*_neg.cc tests
@ 2024-02-01 15:28 Jonathan Wakely
  0 siblings, 0 replies; only message in thread
From: Jonathan Wakely @ 2024-02-01 15:28 UTC (permalink / raw)
  To: gcc-cvs, libstdc++-cvs

https://gcc.gnu.org/g:52e9b70830f992b416a31e0c1946bd1778239d88

commit r14-8701-g52e9b70830f992b416a31e0c1946bd1778239d88
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Wed Jan 31 09:38:36 2024 +0000

    libstdc++: Update expected error for debug/constexpr*_neg.cc tests
    
    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.

Diff:
---
 libstdc++-v3/testsuite/25_algorithms/copy/debug/constexpr_neg.cc       | 2 +-
 .../testsuite/25_algorithms/copy_backward/debug/constexpr_neg.cc       | 3 +--
 libstdc++-v3/testsuite/25_algorithms/equal/debug/constexpr_neg.cc      | 2 +-
 .../25_algorithms/lower_bound/debug/constexpr_partitioned_neg.cc       | 2 +-
 .../25_algorithms/lower_bound/debug/constexpr_partitioned_pred_neg.cc  | 3 +--
 .../25_algorithms/lower_bound/debug/constexpr_valid_range_neg.cc       | 3 +--
 .../25_algorithms/upper_bound/debug/constexpr_partitioned_neg.cc       | 3 +--
 .../25_algorithms/upper_bound/debug/constexpr_partitioned_pred_neg.cc  | 3 +--
 .../25_algorithms/upper_bound/debug/constexpr_valid_range_neg.cc       | 3 +--
 9 files changed, 9 insertions(+), 15 deletions(-)

diff --git a/libstdc++-v3/testsuite/25_algorithms/copy/debug/constexpr_neg.cc b/libstdc++-v3/testsuite/25_algorithms/copy/debug/constexpr_neg.cc
index 2922d1ab1f93..6ae37b87ac5f 100644
--- a/libstdc++-v3/testsuite/25_algorithms/copy/debug/constexpr_neg.cc
+++ b/libstdc++-v3/testsuite/25_algorithms/copy/debug/constexpr_neg.cc
@@ -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()
diff --git a/libstdc++-v3/testsuite/25_algorithms/copy_backward/debug/constexpr_neg.cc b/libstdc++-v3/testsuite/25_algorithms/copy_backward/debug/constexpr_neg.cc
index 4b55b835ab48..52259aa50aa6 100644
--- a/libstdc++-v3/testsuite/25_algorithms/copy_backward/debug/constexpr_neg.cc
+++ b/libstdc++-v3/testsuite/25_algorithms/copy_backward/debug/constexpr_neg.cc
@@ -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()" }
diff --git a/libstdc++-v3/testsuite/25_algorithms/equal/debug/constexpr_neg.cc b/libstdc++-v3/testsuite/25_algorithms/equal/debug/constexpr_neg.cc
index 8fb225ecc85d..82ec49c6f406 100644
--- a/libstdc++-v3/testsuite/25_algorithms/equal/debug/constexpr_neg.cc
+++ b/libstdc++-v3/testsuite/25_algorithms/equal/debug/constexpr_neg.cc
@@ -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()
diff --git a/libstdc++-v3/testsuite/25_algorithms/lower_bound/debug/constexpr_partitioned_neg.cc b/libstdc++-v3/testsuite/25_algorithms/lower_bound/debug/constexpr_partitioned_neg.cc
index 184ae22ae24a..8c2819d05548 100644
--- a/libstdc++-v3/testsuite/25_algorithms/lower_bound/debug/constexpr_partitioned_neg.cc
+++ b/libstdc++-v3/testsuite/25_algorithms/lower_bound/debug/constexpr_partitioned_neg.cc
@@ -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'" }
diff --git a/libstdc++-v3/testsuite/25_algorithms/lower_bound/debug/constexpr_partitioned_pred_neg.cc b/libstdc++-v3/testsuite/25_algorithms/lower_bound/debug/constexpr_partitioned_pred_neg.cc
index f7b2b7231d9a..ab27cb17fb1b 100644
--- a/libstdc++-v3/testsuite/25_algorithms/lower_bound/debug/constexpr_partitioned_pred_neg.cc
+++ b/libstdc++-v3/testsuite/25_algorithms/lower_bound/debug/constexpr_partitioned_pred_neg.cc
@@ -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()" }
diff --git a/libstdc++-v3/testsuite/25_algorithms/lower_bound/debug/constexpr_valid_range_neg.cc b/libstdc++-v3/testsuite/25_algorithms/lower_bound/debug/constexpr_valid_range_neg.cc
index 6996950d6869..9fd3bcc070d7 100644
--- a/libstdc++-v3/testsuite/25_algorithms/lower_bound/debug/constexpr_valid_range_neg.cc
+++ b/libstdc++-v3/testsuite/25_algorithms/lower_bound/debug/constexpr_valid_range_neg.cc
@@ -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()" }
 
diff --git a/libstdc++-v3/testsuite/25_algorithms/upper_bound/debug/constexpr_partitioned_neg.cc b/libstdc++-v3/testsuite/25_algorithms/upper_bound/debug/constexpr_partitioned_neg.cc
index b4e56df91748..c1ee761f51e8 100644
--- a/libstdc++-v3/testsuite/25_algorithms/upper_bound/debug/constexpr_partitioned_neg.cc
+++ b/libstdc++-v3/testsuite/25_algorithms/upper_bound/debug/constexpr_partitioned_neg.cc
@@ -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()" }
diff --git a/libstdc++-v3/testsuite/25_algorithms/upper_bound/debug/constexpr_partitioned_pred_neg.cc b/libstdc++-v3/testsuite/25_algorithms/upper_bound/debug/constexpr_partitioned_pred_neg.cc
index 1ffeb326bfc8..85fcde40b371 100644
--- a/libstdc++-v3/testsuite/25_algorithms/upper_bound/debug/constexpr_partitioned_pred_neg.cc
+++ b/libstdc++-v3/testsuite/25_algorithms/upper_bound/debug/constexpr_partitioned_pred_neg.cc
@@ -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()" }
diff --git a/libstdc++-v3/testsuite/25_algorithms/upper_bound/debug/constexpr_valid_range_neg.cc b/libstdc++-v3/testsuite/25_algorithms/upper_bound/debug/constexpr_valid_range_neg.cc
index 5b0e651d077a..446073c314bb 100644
--- a/libstdc++-v3/testsuite/25_algorithms/upper_bound/debug/constexpr_valid_range_neg.cc
+++ b/libstdc++-v3/testsuite/25_algorithms/upper_bound/debug/constexpr_valid_range_neg.cc
@@ -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()" }

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-02-01 15:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-01 15:28 [gcc r14-8701] libstdc++: Update expected error for debug/constexpr*_neg.cc tests Jonathan Wakely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).