gcc/libstdc++-v3/testsuite
François Dumont f77281b25c libstdc++: Add __gnu_debug::basic_string<>::compare overloads
Rather than adding those implementations we are adding a:
using _Base::compare;

so that any compare method not implemented at __gnu_debug::basic_string
level are injected from the base class.

Also review how __gnu_debug::basic_string is tested. Now require to define
_GLIBCXX_TEST_DEBUG_STRING when running 'make check-debug'.

libstdc++-v3/ChangeLog

	* include/debug/string: Add using _Base::compare.
	(__gnu_debug::basic_string<>::compare(const basic_string<>&)): Remove.
	(__gnu_debug::basic_string<>::compare(size_type, size_type, const basic_string<>&)):
	Remove.
	(__gnu_debug::basic_string<>::compare(size_type, size_type, const basic_string<>&,
	size_type, size_type)): Remove.
	* testsuite/util/testsuite_string.h [_GLIBCXX_TEST_DEBUG_STRING]: Include <debug/string>.
	* testsuite/21_strings/basic_string/operations/compare/char/1.cc: Include testsuite_string.h
	and use __gnu_test::string.
	* testsuite/21_strings/basic_string/operations/compare/char/13650.cc: Likewise.
	* testsuite/21_strings/basic_string/operations/compare/char/2.cc: Likewise.
	* testsuite/21_strings/basic_string/operations/rfind/char/1.cc: Likewise.
	* testsuite/21_strings/basic_string/operations/rfind/char/2.cc: Likewise.
	* testsuite/21_strings/basic_string/operations/rfind/char/3.cc: Likewise.
	* testsuite/21_strings/basic_string/operations/compare/wchar_t/1.cc:
	Include testsuite_string.h
	and use __gnu_test::wstring.
	* testsuite/21_strings/basic_string/operations/compare/wchar_t/13650.cc: Likewise.
	* testsuite/21_strings/basic_string/operations/compare/wchar_t/2.cc: Likewise.
2022-10-12 21:50:21 +02:00
..
17_intro libstdc++: Disable hosted-only tests [PR103626] 2022-10-03 15:44:01 +01:00
18_support libstdc++: Disable hosted-only tests [PR103626] 2022-10-03 15:44:01 +01:00
19_diagnostics libstdc++: Fix comments in tests to match code 2022-09-12 12:03:45 +01:00
20_util libstdc++: Revert addition of constraints to make_signed/make_unsigned 2022-10-10 21:37:03 +01:00
21_strings libstdc++: Add __gnu_debug::basic_string<>::compare overloads 2022-10-12 21:50:21 +02:00
22_locale libstdc++: Fixes for tests that fail with -fno-rtti 2022-05-05 21:13:58 +01:00
23_containers libstdc++: Disable hosted-only tests [PR103626] 2022-10-03 15:44:01 +01:00
24_iterators libstdc++: Revert addition of constraints to make_signed/make_unsigned 2022-10-10 21:37:03 +01:00
25_algorithms libstdc++: Disable test for freestanding 2022-10-04 15:03:28 +01:00
26_numerics libstdc++: Disable hosted-only tests [PR103626] 2022-10-03 15:44:01 +01:00
27_io libstdc++: Disable hosted-only tests [PR103626] 2022-10-03 15:44:01 +01:00
28_regex libstdc++: Check for overflow in regex back-reference [PR106607] 2022-08-22 22:52:24 +01:00
29_atomics libstdc++: Disable hosted-only tests [PR103626] 2022-10-03 15:44:01 +01:00
30_threads libstdc++: Disable hosted-only tests [PR103626] 2022-10-03 15:44:01 +01:00
abi libstdc++: Disable hosted-only tests [PR103626] 2022-10-03 15:44:01 +01:00
backward Update copyright years. 2022-01-03 10:42:10 +01:00
config Update copyright years. 2022-01-03 10:42:10 +01:00
data
decimal Update copyright years. 2022-01-03 10:42:10 +01:00
experimental libstdc++: Add feature test macro for <experimental/scope> 2022-08-05 15:17:57 +01:00
ext libstdc++: Disable hosted-only tests [PR103626] 2022-10-03 15:44:01 +01:00
lib libstdc++: std::make_signed_t<cv bool> should be ill-formed 2022-10-10 12:19:11 +01:00
libstdc++-abi libstdc++: Make _GLIBCXX_HOSTED respect -ffreestanding [PR103626] 2022-10-03 15:43:48 +01:00
libstdc++-dg Update copyright years. 2022-01-03 10:42:10 +01:00
libstdc++-prettyprinters libstdc++: Fix gdb pretty printers when dealing with std::string 2022-10-03 07:01:10 +02:00
libstdc++-xmethods libstdc++: Disable hosted-only tests [PR103626] 2022-10-03 15:44:01 +01:00
performance libstdc++: Optimize operations on small size hashtable [PR 68303] 2022-01-05 21:46:52 +01:00
special_functions Update copyright years. 2022-01-03 10:42:10 +01:00
std libstdc++: Implement ranges::repeat_view from P2474R2 2022-10-12 11:14:11 -04:00
tr1 libstdc++: Fix tr1::variate_generator::engine_value_type 2022-09-16 15:54:42 +01:00
tr2 libstdc++: Fixes for tests that fail with -fno-rtti 2022-05-05 21:13:58 +01:00
util libstdc++: Add __gnu_debug::basic_string<>::compare overloads 2022-10-12 21:50:21 +02:00
Makefile.am Update copyright years. 2022-01-03 10:42:10 +01:00
Makefile.in libstdc++: Allow emergency EH alloc pool size to be tuned [PR68606] 2022-10-11 16:21:48 +01:00