gcc/libstdc++-v3/testsuite
Ville Voutilainen 8dff34fe8e re PR libstdc++/60271 ([DR2369] [C++1y] std::max(initializer_list<T>) cannot use std::max_element)
2014-12-22  Ville Voutilainen  <ville.voutilainen@gmail.com>

	PR libstdc++/60271
	C++14 constexpr min, max, minmax, min_element, max_element
	and minmax_element. Also constexpr for 20.9.5-20.9.9,
	aka various library functors.
	* include/bits/c++config: Add _GLIBCXX14_CONSTEXPR.
	* include/bits/algorithmfwd.h (min, max, minmax, min_element,
	max_element): Use it.
	* include/bits/predefined_ops.h (_Iter_less_iter, __iter_less_iter,
	_Iter_comp_iter, __iter_comp_iter): Likewise.
	* include/bits/stl_algo.h (minmax, __minmax_element, minmax_element,
	min, max, __min_element, min_element, __max_element, max_element)
	Likewise.
	* include/bits/stl_algobase.h (min, max): Likewise.
	* include/bits/stl_function.h (plus, minus, multiplies, divides,
	modulus, negate, equal_to, not_equal_to, greater, less, greater_equal,
	less_equal, logical_and, logical_or, logical_not, bit_and, bit_or,
	bit_xor, bit_not, unary_negate, not1, binary_negate, not2): Likewise.
	* testsuite/20_util/function_objects/constexpr.cc: New.
	* testsuite/25_algorithms/max/constexpr.cc: Likewise.
	* testsuite/25_algorithms/max_element/constexpr.cc: Likewise.
	* testsuite/25_algorithms/min/constexpr.cc: Likewise.
	* testsuite/25_algorithms/min_element/constexpr.cc: Likewise.
	* testsuite/25_algorithms/minmax/constexpr.cc: Likewise.
	* testsuite/25_algorithms/minmax_element/constexpr.cc: Likewise.
	* testsuite/ext/profile/mutex_extensions_neg.cc: Adjust dg-error.

From-SVN: r219015
2014-12-22 16:00:16 +00:00
..
17_intro freestanding.cc: Prefer -std=gnu++11. 2014-10-15 18:31:10 +00:00
18_support New std::string implementation. 2014-12-19 18:16:39 +00:00
19_diagnostics freestanding.cc: Prefer -std=gnu++11. 2014-10-15 18:31:10 +00:00
20_util re PR libstdc++/60271 ([DR2369] [C++1y] std::max(initializer_list<T>) cannot use std::max_element) 2014-12-22 16:00:16 +00:00
21_strings New std::string implementation. 2014-12-19 18:16:39 +00:00
22_locale re PR libstdc++/60396 (Missing time_get<>::get() functions) 2014-12-22 13:45:44 +00:00
23_containers vector (std::__debug::vector<>::clear()): Do not reset guaranteed capacity. 2014-12-20 19:16:03 +00:00
24_iterators stl_iterator.h (make_reverse_iterator): LWG DR 2285. 2014-12-12 13:35:55 +00:00
25_algorithms re PR libstdc++/60271 ([DR2369] [C++1y] std::max(initializer_list<T>) cannot use std::max_element) 2014-12-22 16:00:16 +00:00
26_numerics shrink_to_fit.cc: Prefer -std=gnu++11. 2014-10-15 19:56:52 +00:00
27_io re PR libstdc++/54354 (TODO extended iomanip manipulators std::get_time and std::put_time (C++11, section 27.7.5)) 2014-12-22 13:45:52 +00:00
28_regex re PR libstdc++/64302 (The match_results::cbegin()/cend() return incorrect results) 2014-12-17 09:25:44 +00:00
29_atomics atomic_base.h: Avoid including <stdbool.h>. 2014-10-24 12:54:43 +00:00
30_threads 3.cc: Only use a thread_local when __cxa_thread_atexit_impl is available. 2014-12-11 17:58:22 +00:00
abi Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
backward Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
config Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
data
decimal Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
experimental Post-Urbana updates to Library Fundamentals v1. 2014-12-13 20:44:06 +00:00
ext re PR libstdc++/60271 ([DR2369] [C++1y] std::max(initializer_list<T>) cannot use std::max_element) 2014-12-22 16:00:16 +00:00
lib [libstdc++][testsuite] Mark as UNSUPPORTED tests that don't fit into tiny memory model 2014-12-12 09:36:35 +00:00
libstdc++-abi Makefile.in (dg_target_exps): Remove. 2014-09-15 20:23:36 +02:00
libstdc++-dg Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
libstdc++-prettyprinters New std::string implementation. 2014-12-19 18:16:39 +00:00
libstdc++-xmethods associative-containers.cc: Add new file missed from earlier commit. 2014-11-11 22:10:21 +00:00
performance libstdc++.exp: Prefer -std=gnu++11. 2014-10-16 08:09:09 +00:00
tr1 re PR libstdc++/63840 (std::function copy constructor deletes an uninitialized pointer if new fails) 2014-12-01 13:49:20 +00:00
tr2 libstdc++.exp: Prefer -std=gnu++11. 2014-10-16 08:09:09 +00:00
util New std::string implementation. 2014-12-19 18:16:39 +00:00
Makefile.am Makefile.in (check-parallel-%): Add @. 2014-09-22 12:33:35 -04:00
Makefile.in New std::string implementation. 2014-12-19 18:16:39 +00:00