From 839473d010e6a62814f18155cd50c9e13ae3b6d6 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Sat, 9 May 2015 20:46:12 -0400 Subject: [PATCH] synopsis.cc: Add _GLIBCXX14_CONSTEXPR. * testsuite/20_util/headers/functional/synopsis.cc: Add _GLIBCXX14_CONSTEXPR. * testsuite/25_algorithms/headers/algorithm/synopsis.cc: Likewise. From-SVN: r222975 --- libstdc++-v3/ChangeLog | 6 ++++++ .../testsuite/20_util/headers/functional/synopsis.cc | 2 ++ .../25_algorithms/headers/algorithm/synopsis.cc | 18 ++++++++++++++++++ 3 files changed, 26 insertions(+) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 915df75..d9ada80 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,9 @@ +2015-05-09 Jason Merrill + + * testsuite/20_util/headers/functional/synopsis.cc: Add + _GLIBCXX14_CONSTEXPR. + * testsuite/25_algorithms/headers/algorithm/synopsis.cc: Likewise. + 2015-05-08 Jason Merrill * testsuite/19_diagnostics/headers/system_error/std_c++0x_neg.cc: Add -std=c++98. diff --git a/libstdc++-v3/testsuite/20_util/headers/functional/synopsis.cc b/libstdc++-v3/testsuite/20_util/headers/functional/synopsis.cc index 03d37a6..5e561de 100644 --- a/libstdc++-v3/testsuite/20_util/headers/functional/synopsis.cc +++ b/libstdc++-v3/testsuite/20_util/headers/functional/synopsis.cc @@ -50,9 +50,11 @@ namespace std { // lib.negators, negators: template struct unary_negate; template + _GLIBCXX14_CONSTEXPR unary_negate not1(const Predicate&); template struct binary_negate; template + _GLIBCXX14_CONSTEXPR binary_negate not2(const Predicate&); // lib.binders, binders: diff --git a/libstdc++-v3/testsuite/25_algorithms/headers/algorithm/synopsis.cc b/libstdc++-v3/testsuite/25_algorithms/headers/algorithm/synopsis.cc index ba38f25..4758796 100644 --- a/libstdc++-v3/testsuite/25_algorithms/headers/algorithm/synopsis.cc +++ b/libstdc++-v3/testsuite/25_algorithms/headers/algorithm/synopsis.cc @@ -483,75 +483,93 @@ namespace std // 25.3.7, minimum and maximum: template + _GLIBCXX14_CONSTEXPR const _Tp& min(const _Tp&, const _Tp&); template + _GLIBCXX14_CONSTEXPR const _Tp& min(const _Tp&, const _Tp&, _Compare); template + _GLIBCXX14_CONSTEXPR const _Tp& max(const _Tp&, const _Tp&); template + _GLIBCXX14_CONSTEXPR const _Tp& max(const _Tp&, const _Tp&, _Compare); template + _GLIBCXX14_CONSTEXPR _FIter min_element(_FIter, _FIter); template + _GLIBCXX14_CONSTEXPR _FIter min_element(_FIter, _FIter, _Compare); template + _GLIBCXX14_CONSTEXPR _FIter max_element(_FIter, _FIter); template + _GLIBCXX14_CONSTEXPR _FIter max_element(_FIter, _FIter, _Compare); #if __cplusplus >= 201103L template + _GLIBCXX14_CONSTEXPR pair minmax(const _Tp&, const _Tp&); template + _GLIBCXX14_CONSTEXPR pair minmax(const _Tp&, const _Tp&, _Compare); template + _GLIBCXX14_CONSTEXPR pair<_FIter, _FIter> minmax_element(_FIter, _FIter); template + _GLIBCXX14_CONSTEXPR pair<_FIter, _FIter> minmax_element(_FIter, _FIter, _Compare); template + _GLIBCXX14_CONSTEXPR _Tp min(initializer_list<_Tp>); template + _GLIBCXX14_CONSTEXPR _Tp min(initializer_list<_Tp>, _Compare); template + _GLIBCXX14_CONSTEXPR _Tp max(initializer_list<_Tp>); template + _GLIBCXX14_CONSTEXPR _Tp max(initializer_list<_Tp>, _Compare); template + _GLIBCXX14_CONSTEXPR pair<_Tp, _Tp> minmax(initializer_list<_Tp>); template + _GLIBCXX14_CONSTEXPR pair<_Tp, _Tp> minmax(initializer_list<_Tp>, _Compare); #endif -- 2.7.4