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.
This commit is contained in:
Jonathan Wakely 2024-01-31 09:38:36 +00:00
parent e81a697577
commit 52e9b70830
9 changed files with 9 additions and 15 deletions

View 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()

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

View 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()

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

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

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

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

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

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