gcc/libstdc++-v3/testsuite/20_util/scoped_allocator
Jonathan Wakely 3addb7b937 Tweak C++2a uses-allocator construction utilities
The 20_util/scoped_allocator/69293_neg.cc test was failing in C++2a mode
because the expected static_assert text wasn't matched. The code is
still ill-formed in C++2a, but uses the new __uses_alloc_args function
and so fails a different static_assert. This patch adds the same string
to the new static_assert, so the test passes.

Now that G++ allows concepts to be declared without 'bool' we can use
the correct C++2a syntax for the _Std_pair concept used to constrain the
uses-allocator construction utilities.

Also add a new test to verify that pmr::polymorphic_allocator correctly
performs recursive uses-allocator construction for nested pairs in
C++2a.

	* include/std/memory (__uses_alloc_args): Add string-literal to
	static_assert, to match the one in __uses_alloc.
	[__cpp_concepts] (_Std_pair): Use C++2a syntax for concept.
	* testsuite/20_util/polymorphic_allocator/construct_c++2a.cc: Check
	for recursive uses-allocator construction of nested pairs.
	* testsuite/20_util/scoped_allocator/construct_pair_c++2a.cc:: Add
	comment.

From-SVN: r270600
2019-04-26 14:15:54 +01:00
..
requirements Update copyright years. 2019-01-01 13:31:55 +01:00
1.cc Update copyright years. 2019-01-01 13:31:55 +01:00
2.cc Update copyright years. 2019-01-01 13:31:55 +01:00
3.cc Update copyright years. 2019-01-01 13:31:55 +01:00
65279.cc Update copyright years. 2019-01-01 13:31:55 +01:00
69114.cc Update copyright years. 2019-01-01 13:31:55 +01:00
69293_neg.cc DR 2586 fix value category in uses-allocator checks 2019-02-14 15:08:33 +00:00
construct_pair.cc Update copyright years. 2019-01-01 13:31:55 +01:00
construct_pair_c++2a.cc Tweak C++2a uses-allocator construction utilities 2019-04-26 14:15:54 +01:00
dr2586.cc DR 2586 fix value category in uses-allocator checks 2019-02-14 15:08:33 +00:00
outermost.cc Update copyright years. 2019-01-01 13:31:55 +01:00
propagation.cc Update copyright years. 2019-01-01 13:31:55 +01:00