libstdc++: Fix FAIL: 20_util/ratio/operations/ops_overflow_neg.cc [PR122168]

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.
This commit is contained in:
Jonathan Wakely 2025-10-06 12:16:37 +01:00
parent f857a57e99
commit 0bb897ac9f
1 changed files with 1 additions and 0 deletions

View 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" }