This backports the additional dg-error added by r15-3859-g63a598deb0c9fc
which is now also needed on gcc-14 due to r14-12048-g9c3777e9619ad3
having been backported.

libstdc++-v3/ChangeLog:

        PR libstdc++/122168
        * testsuite/20_util/ratio/operations/ops_overflow_neg.cc: Add
        dg-error for additional error seen with -Wsystem-headers.
---

Tested x86_64-linux. Pushed to gcc-14.

 .../testsuite/20_util/ratio/operations/ops_overflow_neg.cc       | 1 +
 1 file changed, 1 insertion(+)

diff --git 
a/libstdc++-v3/testsuite/20_util/ratio/operations/ops_overflow_neg.cc 
b/libstdc++-v3/testsuite/20_util/ratio/operations/ops_overflow_neg.cc
index ced900bd4727..6d80793fb968 100644
--- a/libstdc++-v3/testsuite/20_util/ratio/operations/ops_overflow_neg.cc
+++ b/libstdc++-v3/testsuite/20_util/ratio/operations/ops_overflow_neg.cc
@@ -48,5 +48,6 @@ test02()
 // { dg-error "overflow in multiplication" "" { target *-*-* } 105 }
 // { dg-error "overflow in constant expression" "" { target *-*-* } 0 }
 // { dg-error "narrowing conversion" "" { target *-*-* } 0 }
+// { dg-error "overflow in expression" "" { target *-*-* } 112 }
 // { dg-prune-output "out of range" }
 // { dg-prune-output "not usable in a constant expression" }
-- 
2.51.0

Reply via email to