gcc/libstdc++-v3/testsuite/ext
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
..
array_allocator Add -Wno-deprecated to dg-options. 2014-11-12 10:32:17 +00:00
bitmap_allocator libstdc++.exp: Prefer -std=gnu++11. 2014-10-16 08:09:09 +00:00
codecvt
concurrence_lock_error
concurrence_unlock_error
debug_allocator
enc_filebuf
ext_pointer
forced_error
iota libstdc++.exp: Prefer -std=gnu++11. 2014-10-16 08:09:09 +00:00
is_heap libstdc++.exp: Prefer -std=gnu++11. 2014-10-16 08:09:09 +00:00
is_sorted libstdc++.exp: Prefer -std=gnu++11. 2014-10-16 08:09:09 +00:00
malloc_allocator libstdc++.exp: Prefer -std=gnu++11. 2014-10-16 08:09:09 +00:00
mt_allocator libstdc++.exp: Prefer -std=gnu++11. 2014-10-16 08:09:09 +00:00
new_allocator libstdc++.exp: Prefer -std=gnu++11. 2014-10-16 08:09:09 +00:00
numeric_traits
pb_ds
pool_allocator libstdc++.exp: Prefer -std=gnu++11. 2014-10-16 08:09:09 +00:00
profile 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
random 57899.cc: Prefer -std=gnu++11. 2014-10-15 15:57:17 +00:00
rope libstdc++.exp: Prefer -std=gnu++11. 2014-10-16 08:09:09 +00:00
slist
stdio_filebuf
stdio_sync_filebuf
throw_allocator libstdc++.exp: Prefer -std=gnu++11. 2014-10-16 08:09:09 +00:00
throw_value
type_traits
vstring libstdc++.exp: Prefer -std=gnu++11. 2014-10-16 08:09:09 +00:00
concept_checks.cc
headers.cc
median.cc
pod_char_traits.cc