libstdc++: Suppress some more additional diagnostics [PR117294]

libstdc++-v3/ChangeLog:

	PR c++/117294
	* testsuite/20_util/optional/cons/value_neg.cc: Prune additional
	output for C++20 and later.
	* testsuite/20_util/scoped_allocator/69293_neg.cc: Match
	additional error for C++20 and later.
This commit is contained in:
Jonathan Wakely
2025-08-20 16:50:12 +01:00
committed by Jonathan Wakely
parent 985684e9b3
commit 889a1352a2
2 changed files with 3 additions and 0 deletions

View File

@@ -37,3 +37,4 @@ int main()
}
}
// { dg-prune-output "no type .*enable_if" }
// { dg-prune-output "no matching function for call to 'main..::U::U..'" }

View File

@@ -42,6 +42,8 @@ static_assert(uses_allocator<X, inner_alloc_type>{}, "");
static_assert(!is_constructible<X, allocator_arg_t, inner_alloc_type>{}, "");
static_assert(!is_constructible<X, inner_alloc_type>{}, "");
// { dg-error "too many initializers" "" { target c++20 } 0 }
void
test01()
{