gcc/libstdc++-v3/testsuite/util
Paolo Carlini 848ca96f30 re PR libstdc++/49559 ([C++0x] stable_sort calls self-move-assignment operator)
2011-07-11  Paolo Carlini  <paolo.carlini@oracle.com>

	PR libstdc++/49559
	* include/bits/stl_algo.h (__move_merge_backward): Remove.
	(__move_merge_adaptive, __move_merge_adaptive_backward): New.
	(__merge_adaptive): Use the latter two.
	(__rotate_adaptive): Avoid self move-assignment.
	* include/bits/stl_algobase.h (move_backward): Fix comment.
	* testsuite/25_algorithms/stable_sort/49559.cc: New.
	* testsuite/25_algorithms/inplace_merge/49559.cc: Likewise.
	* testsuite/25_algorithms/inplace_merge/moveable.cc: Extend.
	* testsuite/25_algorithms/inplace_merge/moveable2.cc: Likewise.
	* testsuite/util/testsuite_rvalref.h (rvalstruct::operator=
	(rvalstruct&&)): Check for self move-assignment.

From-SVN: r176174
2011-07-11 18:38:54 +00:00
..
common_type re PR libstdc++/37144 (A bug in include/ext/pb_ds/detail/pat_trie_/constructors_destructor_fn_imps.hpp) 2011-05-24 02:38:19 +00:00
debug libstdc++.exp ([check_v3_target_debug_mode]): Fix so that it really detects when debug mode is activated. 2010-09-03 18:10:46 +00:00
exception re PR c++/24163 (dependent Base class scope examined during unqualified name lookup in template) 2011-05-20 14:01:22 -04:00
hash_fn Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
io Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
native_type re PR libstdc++/37144 (A bug in include/ext/pb_ds/detail/pat_trie_/constructors_destructor_fn_imps.hpp) 2011-05-24 02:38:19 +00:00
performance re PR libstdc++/37144 (A bug in include/ext/pb_ds/detail/pat_trie_/constructors_destructor_fn_imps.hpp) 2011-05-24 02:38:19 +00:00
regression re PR libstdc++/37144 (A bug in include/ext/pb_ds/detail/pat_trie_/constructors_destructor_fn_imps.hpp) 2011-05-24 02:38:19 +00:00
statistic Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
thread Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
replacement_memory_operators.h remove_freed.cc: Fix test01 return type to void. 2010-08-31 17:24:39 +00:00
testsuite_abi_check.cc Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
testsuite_abi.cc acinclude.m4: Define GLIBCXX_CHECK_GET_NPROCS and GLIBCXX_CHECK_SC_NPROCESSORS_ONLN. 2011-05-28 18:27:01 +01:00
testsuite_abi.h extract_symvers: Add support for tracking TLS symbols. 2010-10-01 17:10:38 +00:00
testsuite_allocator.cc Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
testsuite_allocator.h testsuite_allocator.h (propagating_allocator<>:: operator=(const propagating_allocator<>&)): Retun *this. 2011-07-11 17:19:53 +00:00
testsuite_api.h re PR libstdc++/32618 (std::vector calls uneccessary constructors instead of inplace construction of first object) 2010-06-18 18:07:45 +00:00
testsuite_character.cc Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
testsuite_character.h re PR libstdc++/45628 (std::fstream::tellg invalidates I/O buffer) 2010-09-22 19:40:43 +00:00
testsuite_common_types.h re PR libstdc++/48566 (libstdc++-v3 testsuite failures due to missing includes) 2011-04-12 09:05:30 +00:00
testsuite_container_traits.h [multiple changes] 2010-09-29 11:56:34 +00:00
testsuite_containers.h re PR libstdc++/37144 (A bug in include/ext/pb_ds/detail/pat_trie_/constructors_destructor_fn_imps.hpp) 2011-05-24 02:38:19 +00:00
testsuite_error.h re PR c++/42844 (const variable requires initializer / no explicitly declared default constructor) 2010-04-27 14:56:13 -04:00
testsuite_greedy_ops.h stl_iterator.h: Add move_iterator operators overloads to make it robust to template abuses. 2010-12-08 01:23:41 +00:00
testsuite_hooks.cc testsuite_iterators.h: Don't include <cstddef>, don't use NULL, use std::size_t and std::ptrdiff_t. 2010-06-03 23:11:46 +00:00
testsuite_hooks.h [multiple changes] 2010-06-26 20:11:20 +00:00
testsuite_io.h re PR c++/24163 (dependent Base class scope examined during unqualified name lookup in template) 2011-05-20 14:01:22 -04:00
testsuite_iterators.h testsuite_iterators.h: Guard move.h includes. 2010-12-16 22:02:38 +00:00
testsuite_performance.h c++config (std::size_t, [...]): Provide typedefs. 2010-06-03 19:15:56 +00:00
testsuite_random.h invoke.cc: Avoid -Wall warnings. 2011-06-22 21:46:17 +00:00
testsuite_rng.h Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
testsuite_rvalref.h re PR libstdc++/49559 ([C++0x] stable_sort calls self-move-assignment operator) 2011-07-11 18:38:54 +00:00
testsuite_shared.cc Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
testsuite_tr1.h tuple (tuple<>::operator=(tuple&&)): Specify as noexcept. 2011-05-19 17:20:22 +00:00