gcc/libstdc++-v3/testsuite/20_util/unique_ptr/modifiers
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
..
43183.cc testsuite_hooks.h: Rewrite VERIFY in terms of __builtin_printf and __builtin_abort. 2016-10-12 16:13:06 +00:00
48398.cc Use effective-target instead of -std options 2016-08-26 12:41:37 +01:00
cv_qual.cc PR77987 Fix unique_ptr<T[], D>::reset(U) for T != U 2016-10-17 13:00:44 +01:00
reset_neg.cc PR77987 Fix unique_ptr<T[], D>::reset(U) for T != U 2016-10-17 13:00:44 +01:00