gcc/libstdc++-v3/testsuite
Jonathan Wakely c883d1dcde libstdc++: Fix vector<bool> printer tests to work in debug mode
This fixes a compilation error in debug mode, due to std::_Bit_reference
not being defined, because it's in namespace std::__cxx1998 instead. We
can refer to it as vector<bool>::reference instead, which always works.

That fixes some compilation errors in debug mode, but the tests fail at
run-time instead because the printers for vector<bool> helpers are only
registered for the std namespace, not std::__cxx1998. That is fixed by
using add_container to register the printers instead of add_version, as
the former registers them in the std and std::__cxx1998 namespaces.

Signed-off-by: Jonathan Wakely <jwakely@redhat.com>

libstdc++-v3/ChangeLog:

	* python/libstdcxx/v6/printers.py (StdBitReferencePrinter): Use
	'std::vector<bool>::reference' as type name, not _Bit_reference.
	(build_libstdcxx_dictionary): Register printers for vector<bool>
	types in debug mode too.
	* testsuite/libstdc++-prettyprinters/simple.cc: Adjust expected
	output for invalid _Bit_reference. Use vector<bool>::reference
	instead of _Bit_reference.
	* testsuite/libstdc++-prettyprinters/simple11.cc: Likewise.
2021-08-18 14:26:38 +01:00
..
17_intro libstdc++: Fix backwards logic in 17_intro/names.cc test [PR 97088] 2021-06-28 15:15:16 +01:00
18_support libstdc++: Add [[nodiscard]] to <compare> 2021-08-05 15:16:58 +01:00
19_diagnostics
20_util libstdc++: Add conditional noexcept to std::exchange 2021-08-17 14:22:49 +01:00
21_strings libstdc++: Add [[nodiscard]] to iterators and related utilities 2021-08-04 12:54:28 +01:00
22_locale
23_containers libstdc++: Define std::is_pointer_interconvertible_base_of for C++20 2021-08-11 16:53:22 +01:00
24_iterators libstdc++: Add [[nodiscard]] to iterators and related utilities 2021-08-04 12:54:28 +01:00
25_algorithms libstdc++: Fix dg-prune-output assertion message 2021-08-08 19:12:22 +02:00
26_numerics libstdc++: Optimize std::seed_seq construction 2021-08-17 16:53:19 +01:00
27_io libstdc++: Use secure_getenv for filesystem::temp_directory_path() [PR65018] 2021-07-30 18:12:39 +01:00
28_regex libstdc++: Add [[nodiscard]] to iterators and related utilities 2021-08-04 12:54:28 +01:00
29_atomics libstdc++: Replace TR1 components with C++11 ones in test utils 2021-08-03 15:40:42 +01:00
30_threads libstdc++: Avoid "__lockable" name defined as macro by newlib 2021-06-23 11:05:51 +01:00
abi
backward
config
data
decimal
experimental libstdc++: Fix test that fails randomly [PR101866] 2021-08-11 23:39:34 +01:00
ext libstdc++: Add [[nodiscard]] to iterators and related utilities 2021-08-04 12:54:28 +01:00
lib libstdc++: Avoid illegal argument to verbose in dg-test callback, continued 2021-08-17 21:05:27 +02:00
libstdc++-abi
libstdc++-dg
libstdc++-prettyprinters libstdc++: Fix vector<bool> printer tests to work in debug mode 2021-08-18 14:26:38 +01:00
libstdc++-xmethods
performance
special_functions
std libstdc++: Tweak timeout for testsuite/std/ranges/iota/max_size_type.cc 2021-08-08 10:52:50 +02:00
tr1
tr2
util libstdc++: Replace TR1 components with C++11 ones in test utils 2021-08-03 15:40:42 +01:00
Makefile.am libstdc++: Remove -fno-tree-vrp after PR98834 was resolved 2021-06-23 18:28:59 +01:00
Makefile.in libstdc++: Remove -fno-tree-vrp after PR98834 was resolved 2021-06-23 18:28:59 +01:00