]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Fix FAIL: 20_util/ratio/operations/ops_overflow_neg.cc [PR122168]
authorJonathan Wakely <jwakely@redhat.com>
Mon, 6 Oct 2025 11:16:37 +0000 (12:16 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Mon, 6 Oct 2025 11:16:37 +0000 (12:16 +0100)
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.

libstdc++-v3/testsuite/20_util/ratio/operations/ops_overflow_neg.cc

index ced900bd4727ea968e359963c30cc432a9a095ce..6d80793fb968235b9fdfe7532818fe67faaab9db 100644 (file)
@@ -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" }