gcc/libstdc++-v3/testsuite/20_util/shared_ptr
Jonathan Wakely f5fa62ed19 libstdc++: Add comparison operators to std::shared_ptr (PR 94562)
This also implements the proposed resolution to LWG issue 3247, so that
the ill-formed <=> expression with nullptr is not used.

	PR libstdc++/94562
	* include/bits/shared_ptr.h (operator<=>): Define for C++20.
	* include/bits/shared_ptr_base.h (operator<=>): Likewise.
	* include/bits/unique_ptr.h (operator<=>): Add inline specifier.
	* testsuite/20_util/shared_ptr/comparison/cmp_c++20.cc: New test.
	* testsuite/20_util/shared_ptr/comparison/less.cc: Do not expect
	std::less<A*> to be used when comparing std::shared_ptr<A> objects in
	C++20.
2020-04-14 21:54:55 +01:00
..
assign Update copyright years. 2020-01-01 12:51:42 +01:00
atomic Update copyright years. 2020-01-01 12:51:42 +01:00
casts Update copyright years. 2020-01-01 12:51:42 +01:00
comparison libstdc++: Add comparison operators to std::shared_ptr (PR 94562) 2020-04-14 21:54:55 +01:00
cons Update copyright years. 2020-01-01 12:51:42 +01:00
creation Library-side tests for parenthesized aggregate init 2020-03-31 17:07:52 +03:00
dest Update copyright years. 2020-01-01 12:51:42 +01:00
hash Update copyright years. 2020-01-01 12:51:42 +01:00
misc Update copyright years. 2020-01-01 12:51:42 +01:00
modifiers Update copyright years. 2020-01-01 12:51:42 +01:00
observers Update copyright years. 2020-01-01 12:51:42 +01:00
requirements Update copyright years. 2020-01-01 12:51:42 +01:00
thread Update copyright years. 2020-01-01 12:51:42 +01:00