gcc/libstdc++-v3/testsuite/libstdc++-prettyprinters
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
..
48362.cc Update copyright years. 2021-01-04 10:26:59 +01:00
59161.cc Update copyright years. 2021-01-04 10:26:59 +01:00
80276.cc Update copyright years. 2021-01-04 10:26:59 +01:00
91997.cc libstdc++: Remove redundant -std=gnu++17 option from remaining tests 2021-05-10 16:22:54 +01:00
compat.cc Update copyright years. 2021-01-04 10:26:59 +01:00
cxx11.cc libstdc++: Add pretty printer for std::error_code and std::error_condition 2021-08-17 14:22:49 +01:00
cxx17.cc libstdc++: Remove redundant -std=gnu++17 option from remaining tests 2021-05-10 16:22:54 +01:00
cxx20.cc Update copyright years. 2021-01-04 10:26:59 +01:00
debug_cxx11.cc Update copyright years. 2021-01-04 10:26:59 +01:00
debug.cc Update copyright years. 2021-01-04 10:26:59 +01:00
filesystem-ts.cc Update copyright years. 2021-01-04 10:26:59 +01:00
libfundts.cc Update copyright years. 2021-01-04 10:26:59 +01:00
prettyprinters.exp Update copyright years. 2021-01-04 10:26:59 +01:00
shared_ptr.cc Update copyright years. 2021-01-04 10:26:59 +01:00
simple11.cc libstdc++: Fix vector<bool> printer tests to work in debug mode 2021-08-18 14:26:38 +01:00
simple.cc libstdc++: Fix vector<bool> printer tests to work in debug mode 2021-08-18 14:26:38 +01:00
tr1.cc Update copyright years. 2021-01-04 10:26:59 +01:00
whatis2.cc Update copyright years. 2021-01-04 10:26:59 +01:00
whatis.cc Update copyright years. 2021-01-04 10:26:59 +01:00