gcc/libstdc++-v3/testsuite
Jonathan Wakely e25f488d60 Fix unique_ptr pretty printer for empty classes
The printer was confused when unique_ptr<T,D>::pointer is an empty
class, or the deleter is not empty. Instead of assuming the tuple has a
single _M_head_impl member manually inspect the tuple base classes to
get the first element.

	* python/libstdcxx/v6/printers.py (UniquePointerPrinter.__init__): Do
	not assume field called _M_head_impl is the first tuple element.
	* testsuite/libstdc++-prettyprinters/compat.cc: Make tuple
	implementation more accurate.
	* testsuite/libstdc++-prettyprinters/cxx11.cc: Check unique_ptr with
	empty pointer type and non-empty deleter.

From-SVN: r271159
2019-05-14 12:17:18 +01:00
..
17_intro libstdc++-v3 Skip tests on Darwin8-10. 2019-04-21 08:14:47 +00:00
18_support P0482R5 char8_t: Updates to existing standard library tests 2019-02-22 01:16:08 +00:00
19_diagnostics Add test for std::hash<std::error_code> 2019-05-07 16:30:29 +01:00
20_util LWG 2899 - Make is_move_constructible correct for unique_ptr 2019-05-14 12:17:11 +01:00
21_strings Make allocator propagation more consistent for operator+(basic_string) (P1165R1) 2019-05-07 16:30:46 +01:00
22_locale P0482R5 char8_t: Updates to existing standard library tests 2019-02-22 01:16:08 +00:00
23_containers Remove Profile Mode, deprecated since GCC 7.1 2019-05-13 11:50:21 +01:00
24_iterators Update copyright years. 2019-01-01 13:31:55 +01:00
25_algorithms Remove Profile Mode, deprecated since GCC 7.1 2019-05-13 11:50:21 +01:00
26_numerics Fix new testcase to not require std::copysign 2019-05-03 20:25:05 +01:00
27_io PR libstdc++/90454.cc path construction from void* 2019-05-13 21:12:06 +01:00
28_regex PR libstdc++/89023 fix test that fails when <omp.h> not available 2019-02-11 12:56:59 +00:00
29_atomics Change test to use const variables instead of macros 2019-03-11 13:46:09 +00:00
30_threads Fix tests that fail in C++2a mode 2019-01-29 00:47:32 +00:00
abi Update copyright years. 2019-01-01 13:31:55 +01:00
backward Update copyright years. 2019-01-01 13:31:55 +01:00
config Update copyright years. 2019-01-01 13:31:55 +01:00
data
decimal Update copyright years. 2019-01-01 13:31:55 +01:00
experimental PR libstdc++/90454.cc path construction from void* 2019-05-13 21:12:06 +01:00
ext Remove Profile Mode, deprecated since GCC 7.1 2019-05-13 11:50:21 +01:00
lib Remove Profile Mode, deprecated since GCC 7.1 2019-05-13 11:50:21 +01:00
libstdc++-abi Update copyright years. 2019-01-01 13:31:55 +01:00
libstdc++-dg Update copyright years. 2019-01-01 13:31:55 +01:00
libstdc++-prettyprinters Fix unique_ptr pretty printer for empty classes 2019-05-14 12:17:18 +01:00
libstdc++-xmethods Update copyright years. 2019-01-01 13:31:55 +01:00
performance Update copyright years. 2019-01-01 13:31:55 +01:00
special_functions PR libstdc++/86655 - std::assoc_legendre should not constrain 2019-03-06 13:38:32 +00:00
tr1 PR libstdc++/86655 - std::assoc_legendre should not constrain 2019-03-06 13:38:32 +00:00
tr2 Update copyright years. 2019-01-01 13:31:55 +01:00
util PR libstdc++/81266 fix std:🧵:native_handle_type test 2019-05-10 22:41:23 +01:00
Makefile.am Remove Profile Mode, deprecated since GCC 7.1 2019-05-13 11:50:21 +01:00
Makefile.in Remove Profile Mode, deprecated since GCC 7.1 2019-05-13 11:50:21 +01:00