gcc/libstdc++-v3/testsuite
Jonathan Wakely 74cf9664e8 PR77987 Fix unique_ptr<T[], D>::reset(U) for T != U
PR libstdc++/77987
	* include/bits/unique_ptr.h (unique_ptr<T[], D>::reset<U>(U)): Copy
	value to pointer of the correct type to swap, to support conversions
	allowed by LWG 2118 / N4089.
	* testsuite/20_util/unique_ptr/assign/assign_neg.cc: Move test for
	incompatible deleters from ...
	* testsuite/20_util/unique_ptr/assign/cv_qual.cc: ... here.
	* testsuite/20_util/unique_ptr/modifiers/cv_qual.cc: Move tests for
	incompatible pointers to ...
	* testsuite/20_util/unique_ptr/modifiers/reset_neg.cc: ... here. Move
	destructor definition to base class. Test for invalid derived-to-base
	conversion.

From-SVN: r241235
2016-10-17 13:00:44 +01:00
..
17_intro Fix libstdc++ versioned namespace build 2016-10-03 15:35:28 +01:00
18_support testsuite_hooks.h: Rewrite VERIFY in terms of __builtin_printf and __builtin_abort. 2016-10-12 16:13:06 +00:00
19_diagnostics testsuite_hooks.h: Rewrite VERIFY in terms of __builtin_printf and __builtin_abort. 2016-10-12 16:13:06 +00:00
20_util PR77987 Fix unique_ptr<T[], D>::reset(U) for T != U 2016-10-17 13:00:44 +01:00
21_strings testsuite_hooks.h: Rewrite VERIFY in terms of __builtin_printf and __builtin_abort. 2016-10-12 16:13:06 +00:00
22_locale isblank.cc: Remove 'test' variables. 2016-10-17 00:02:57 +00:00
23_containers Implement P0084R2, Emplace return type, for C++17 2016-10-17 13:00:38 +01:00
24_iterators container_access.cc: Remove 'test' variables. 2016-10-13 19:37:45 +00:00
25_algorithms container_access.cc: Remove 'test' variables. 2016-10-13 19:37:45 +00:00
26_numerics 1.cc: Remove 'test' variables. 2016-10-14 13:50:24 +00:00
27_io testsuite_hooks.h: Rewrite VERIFY in terms of __builtin_printf and __builtin_abort. 2016-10-12 16:13:06 +00:00
28_regex container_access.cc: Remove 'test' variables. 2016-10-13 19:37:45 +00:00
29_atomics container_access.cc: Remove 'test' variables. 2016-10-13 19:37:45 +00:00
30_threads isblank.cc: Remove 'test' variables. 2016-10-17 00:02:57 +00:00
abi Skip C tests if test flags include C++ options 2016-08-02 14:32:26 +01:00
backward container_access.cc: Remove 'test' variables. 2016-10-13 19:37:45 +00:00
config Update copyright years. 2016-01-04 15:30:50 +01:00
data
decimal container_access.cc: Remove 'test' variables. 2016-10-13 19:37:45 +00:00
experimental Resolve ambiguities in std::experimental::sample test 2016-10-14 20:40:18 +01:00
ext Make sure the return value of malloc_allocator::allocate is zero-initialized so... 2016-10-16 16:31:43 +03:00
lib testsuite_hooks.h: Rewrite VERIFY in terms of __builtin_printf and __builtin_abort. 2016-10-12 16:13:06 +00:00
libstdc++-abi Update copyright years. 2016-01-04 15:30:50 +01:00
libstdc++-dg Implement TR29124 C++ special Math Functions. 2016-01-14 18:12:43 +00:00
libstdc++-prettyprinters Implement C++17 node extraction and insertion (P0083R5) 2016-09-22 14:58:49 +01:00
libstdc++-xmethods Enable printers and xmethods for std::__cxx11::list 2016-10-11 11:33:29 +01:00
performance Use effective-target instead of -std options 2016-08-26 12:41:37 +01:00
special_functions container_access.cc: Remove 'test' variables. 2016-10-13 19:37:45 +00:00
tr1 isblank.cc: Remove 'test' variables. 2016-10-17 00:02:57 +00:00
tr2 container_access.cc: Remove 'test' variables. 2016-10-13 19:37:45 +00:00
util container_access.cc: Remove 'test' variables. 2016-10-13 19:37:45 +00:00
Makefile.am Update copyright years. 2016-01-04 15:30:50 +01:00
Makefile.in Disable .gnu.attributes tags in compatibility-ldbl.o 2016-09-29 07:33:17 +09:30