diff options
author | Jason Merrill <jason@redhat.com> | 2015-05-09 20:46:12 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2015-05-09 20:46:12 -0400 |
commit | 839473d010e6a62814f18155cd50c9e13ae3b6d6 (patch) | |
tree | f56553e950d91760656dc30f8d2199f1e74063c6 /libstdc++-v3 | |
parent | 6b534c5e3a73dd5039bc31ec1d0400627405ab1b (diff) | |
download | gcc-839473d010e6a62814f18155cd50c9e13ae3b6d6.zip gcc-839473d010e6a62814f18155cd50c9e13ae3b6d6.tar.gz gcc-839473d010e6a62814f18155cd50c9e13ae3b6d6.tar.bz2 |
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
Diffstat (limited to 'libstdc++-v3')
-rw-r--r-- | libstdc++-v3/ChangeLog | 6 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/20_util/headers/functional/synopsis.cc | 2 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/25_algorithms/headers/algorithm/synopsis.cc | 18 |
3 files changed, 26 insertions, 0 deletions
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 <jason@redhat.com> + + * testsuite/20_util/headers/functional/synopsis.cc: Add + _GLIBCXX14_CONSTEXPR. + * testsuite/25_algorithms/headers/algorithm/synopsis.cc: Likewise. + 2015-05-08 Jason Merrill <jason@redhat.com> * 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 <class Predicate> struct unary_negate; template <class Predicate> + _GLIBCXX14_CONSTEXPR unary_negate<Predicate> not1(const Predicate&); template <class Predicate> struct binary_negate; template <class Predicate> + _GLIBCXX14_CONSTEXPR binary_negate<Predicate> 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<typename _Tp> + _GLIBCXX14_CONSTEXPR const _Tp& min(const _Tp&, const _Tp&); template<typename _Tp, typename _Compare> + _GLIBCXX14_CONSTEXPR const _Tp& min(const _Tp&, const _Tp&, _Compare); template<typename _Tp> + _GLIBCXX14_CONSTEXPR const _Tp& max(const _Tp&, const _Tp&); template<typename _Tp, typename _Compare> + _GLIBCXX14_CONSTEXPR const _Tp& max(const _Tp&, const _Tp&, _Compare); template<typename _FIter> + _GLIBCXX14_CONSTEXPR _FIter min_element(_FIter, _FIter); template<typename _FIter, typename _Compare> + _GLIBCXX14_CONSTEXPR _FIter min_element(_FIter, _FIter, _Compare); template<typename _FIter> + _GLIBCXX14_CONSTEXPR _FIter max_element(_FIter, _FIter); template<typename _FIter, typename _Compare> + _GLIBCXX14_CONSTEXPR _FIter max_element(_FIter, _FIter, _Compare); #if __cplusplus >= 201103L template<typename _Tp> + _GLIBCXX14_CONSTEXPR pair<const _Tp&, const _Tp&> minmax(const _Tp&, const _Tp&); template<typename _Tp, typename _Compare> + _GLIBCXX14_CONSTEXPR pair<const _Tp&, const _Tp&> minmax(const _Tp&, const _Tp&, _Compare); template<typename _FIter> + _GLIBCXX14_CONSTEXPR pair<_FIter, _FIter> minmax_element(_FIter, _FIter); template<typename _FIter, typename _Compare> + _GLIBCXX14_CONSTEXPR pair<_FIter, _FIter> minmax_element(_FIter, _FIter, _Compare); template<typename _Tp> + _GLIBCXX14_CONSTEXPR _Tp min(initializer_list<_Tp>); template<typename _Tp, typename _Compare> + _GLIBCXX14_CONSTEXPR _Tp min(initializer_list<_Tp>, _Compare); template<typename _Tp> + _GLIBCXX14_CONSTEXPR _Tp max(initializer_list<_Tp>); template<typename _Tp, typename _Compare> + _GLIBCXX14_CONSTEXPR _Tp max(initializer_list<_Tp>, _Compare); template<typename _Tp> + _GLIBCXX14_CONSTEXPR pair<_Tp, _Tp> minmax(initializer_list<_Tp>); template<typename _Tp, typename _Compare> + _GLIBCXX14_CONSTEXPR pair<_Tp, _Tp> minmax(initializer_list<_Tp>, _Compare); #endif |