gcc/libstdc++-v3/testsuite
Jonathan Wakely 7663cae227 Constrain std::shared_ptr assignment and resetting
* include/bits/shared_ptr.h (_Assignable): New alias template.
	(shared_ptr::operator=(const shared_ptr<_Tp1>&))
	(shared_ptr::operator=(shared_ptr<_Tp1>&&))
	(shared_ptr::operator=(unique_ptr<_Tp1>&&)): Constrain with
	_Assignable.
	* include/bits/shared_ptr_base.h (_Assignable): New alias template.
	(__shared_ptr::operator=(const __shared_ptr<_Tp1>&))
	(__shared_ptr::operator=(__shared_ptr<_Tp1>&&))
	(__shared_ptr::operator=(unique_ptr<_Tp1>&&)): Constrain with
	_Assignable.
	(__shared_ptr::reset(_Tp1*), __shared_ptr::reset(_Tp1*, _Deleter))
	(__shared_ptr::reset(_Tp1*, _Deleter, _Alloc)): Constrain with
	_Convertible.
	* testsuite/20_util/shared_ptr/cons/43820_neg.cc: Change dg-error to
	match on any line.
	* testsuite/20_util/shared_ptr/cons/void_neg.cc: Likewise.
	* testsuite/20_util/shared_ptr/assign/sfinae.cc: New test.
	* testsuite/20_util/shared_ptr/assign/shared_ptr_neg.cc: Update
	expected errors. Remove unnecessary code.
	* testsuite/20_util/shared_ptr/modifiers/reset_sfinae.cc: New test.

From-SVN: r239898
2016-08-31 17:57:20 +01:00
..
17_intro Use effective-target instead of -std options 2016-08-26 12:41:37 +01:00
18_support Use effective-target instead of -std options 2016-08-26 12:41:37 +01:00
19_diagnostics Use effective-target instead of -std options 2016-08-26 12:41:37 +01:00
20_util Constrain std::shared_ptr assignment and resetting 2016-08-31 17:57:20 +01:00
21_strings Use effective-target instead of -std options 2016-08-26 12:41:37 +01:00
22_locale 2.cc: Move dg-do run directive above dg-require-namedlocale directive. 2016-08-30 18:59:39 +02:00
23_containers Move comparison object in map/set move assignment 2016-08-31 17:57:14 +01:00
24_iterators Use effective-target instead of -std options 2016-08-26 12:41:37 +01:00
25_algorithms Use effective-target instead of -std options 2016-08-26 12:41:37 +01:00
26_numerics Use effective-target instead of -std options 2016-08-26 12:41:37 +01:00
27_io 2.cc: Move dg-do run directive above dg-require-namedlocale directive. 2016-08-30 18:59:39 +02:00
28_regex re PR libstdc++/77356 (regex error for a ECMAScript syntax string) 2016-08-27 02:03:23 +00:00
29_atomics Use effective-target instead of -std options 2016-08-26 12:41:37 +01:00
30_threads Use effective-target instead of -std options 2016-08-26 12:41:37 +01:00
abi Skip C tests if test flags include C++ options 2016-08-02 14:32:26 +01:00
backward Fix __gnu_cxx::hash_set test to pass in C++98 mode 2016-08-01 13:45:47 +01:00
config Update copyright years. 2016-01-04 15:30:50 +01:00
data make_graph_test_infos.xml: Edit. 2011-08-15 00:51:06 +00:00
decimal Use effective-target instead of -std options 2016-08-26 12:41:37 +01:00
experimental Use effective-target instead of -std options 2016-08-26 12:41:37 +01:00
ext Use effective-target instead of -std options 2016-08-26 12:41:37 +01:00
lib Restore dg-interpreter-batch-mode for libstdc++ tests 2016-08-26 12:35:58 +01: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 Use effective-target instead of -std options 2016-08-26 12:41:37 +01:00
libstdc++-xmethods Use effective-target instead of -std options 2016-08-26 12:41:37 +01:00
performance Use effective-target instead of -std options 2016-08-26 12:41:37 +01:00
special_functions Only run math special function tests for C++11 and later 2016-08-02 14:32:16 +01:00
tr1 Use effective-target instead of -std options 2016-08-26 12:41:37 +01:00
tr2 Use effective-target instead of -std options 2016-08-26 12:41:37 +01:00
util libstdc++/68297 avoid throw/catch in make_exception_ptr 2016-08-22 18:29:31 +01:00
Makefile.am Update copyright years. 2016-01-04 15:30:50 +01:00
Makefile.in libstdc++-v3/fragment.am (AM_CPPFLAGS): Add CPPFLAGS 2015-07-24 07:05:19 +00:00