gcc/libstdc++-v3/testsuite
Jonathan Wakely 5840e3b8ff PR libstdc++/84928 use std::move in <numeric> algorithms
P0616R0 altered the effects of the <numeric> algorithms to use std::move
on the accumulator values (resolving LWG 2055). This implements the
change for C++2a, but retains the previous behaviour for older
standards.

	* include/bits/stl_numeric.h (_GLIBCXX_MOVE_IF_20): Define macro to
	conditionally move, according to __cplusplus value.
	(accumulate, inner_product, partial_sum, adjacent_difference): Use
	_GLIBCXX_MOVE_IF_20.
	* testsuite/26_numerics/accumulate/lwg2055.cc: New test.
	* testsuite/26_numerics/adjacent_difference/lwg2055.cc: New test.
	* testsuite/26_numerics/inner_product/lwg2055.cc: New test.
	* testsuite/26_numerics/partial_sum/lwg2055.cc: New test.

From-SVN: r262477
2018-07-06 15:16:13 +01:00
..
17_intro P0754R2 <version> header 2018-06-18 17:42:11 +01:00
18_support P0754R2 <version> header 2018-06-18 17:42:11 +01:00
19_diagnostics PR libstdc++/85831 define move constructors and operators for exceptions 2018-07-05 22:29:51 +01:00
20_util PR libstdc++/86398 fix std::is_trivially_constructible regression 2018-07-04 10:03:18 +01:00
21_strings Add xfail-if to some tests that fail with COW strings 2018-07-05 18:03:14 +01:00
22_locale P0935R0 Eradicating unnecessarily explicit default constructors 2018-06-14 15:12:24 +01:00
23_containers P0646R1 Improving the Return Value of Erase-Like Algorithms I 2018-07-04 21:15:01 +01:00
24_iterators safe_iterator.h (_Safe_iterator<>::_M_constant()): Rename in... 2018-05-09 20:04:46 +00:00
25_algorithms Define "random_device" effective target 2018-07-04 17:56:21 +01:00
26_numerics PR libstdc++/84928 use std::move in <numeric> algorithms 2018-07-06 15:16:13 +01:00
27_io P0935R0 Eradicating unnecessarily explicit default constructors 2018-07-06 13:39:02 +01:00
28_regex Optimize std::sub_match comparisons using string_view-like type 2018-07-02 21:31:11 +01:00
29_atomics Implement P0558R2 changes to std::atomic 2018-05-24 16:28:26 +01:00
30_threads PR libstdc++/84535 constrain std::thread constructor 2018-05-03 15:08:36 +01:00
abi Update copyright years. 2018-01-03 11:03:58 +01:00
backward Remove duplicate function call in test 2018-05-02 17:27:01 +01:00
config Update copyright years. 2018-01-03 11:03:58 +01:00
data
decimal Update copyright years. 2018-01-03 11:03:58 +01:00
experimental Define "random_device" effective target 2018-07-04 17:56:21 +01:00
ext P0935R0 Eradicating unnecessarily explicit default constructors 2018-06-14 14:32:53 +01:00
lib Define "random_device" effective target 2018-07-04 17:56:21 +01:00
libstdc++-abi Update copyright years. 2018-01-03 11:03:58 +01:00
libstdc++-dg Update copyright years. 2018-01-03 11:03:58 +01:00
libstdc++-prettyprinters printers.py (NodeIteratorPrinter): New. 2018-03-08 06:26:15 +00:00
libstdc++-xmethods Update copyright years. 2018-01-03 11:03:58 +01:00
performance Update copyright years. 2018-01-03 11:03:58 +01:00
special_functions PR libstdc++/83140 - assoc_legendre returns negated value when m is odd 2018-05-10 13:59:52 +00:00
tr1 ...and actually resture the *new* testcase. 2018-05-11 17:38:26 +00:00
tr2 Update copyright years. 2018-01-03 11:03:58 +01:00
util Optimize std::sub_match comparisons using string_view-like type 2018-07-02 21:31:11 +01:00
Makefile.am Update copyright years. 2018-01-03 11:03:58 +01:00
Makefile.in Enable building libstdc++-v3 with Intel CET 2017-11-17 22:28:10 +01:00