mirror of git://gcc.gnu.org/git/gcc.git
Adjust testcase for C++14 compatibility
* testsuite/24_iterators/headers/iterator/range_access.cc: Adjust expected signatures for C++14 compatibility. From-SVN: r239533
This commit is contained in:
parent
657213f736
commit
ba364478df
|
|
@ -1,5 +1,8 @@
|
||||||
2016-08-17 Jonathan Wakely <jwakely@redhat.com>
|
2016-08-17 Jonathan Wakely <jwakely@redhat.com>
|
||||||
|
|
||||||
|
* testsuite/24_iterators/headers/iterator/range_access.cc: Adjust
|
||||||
|
expected signatures for C++14 compatibility.
|
||||||
|
|
||||||
PR libstdc++/77264
|
PR libstdc++/77264
|
||||||
* include/bits/basic_string.h (operator=(__sv_type)
|
* include/bits/basic_string.h (operator=(__sv_type)
|
||||||
(append(__sv_type), assign(__sv_type), insert(size_type, __sv_type))
|
(append(__sv_type), assign(__sv_type), insert(size_type, __sv_type))
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
// { dg-do compile }
|
// { dg-do compile { target c++11 } }
|
||||||
// { dg-options "-std=gnu++11" }
|
|
||||||
|
|
||||||
// Copyright (C) 2010-2016 Free Software Foundation, Inc.
|
// Copyright (C) 2010-2016 Free Software Foundation, Inc.
|
||||||
//
|
//
|
||||||
|
|
@ -28,6 +27,11 @@ namespace std
|
||||||
template<class C> auto end(C& c) -> decltype(c.end());
|
template<class C> auto end(C& c) -> decltype(c.end());
|
||||||
template<class C> auto end(const C& c) -> decltype(c.end());
|
template<class C> auto end(const C& c) -> decltype(c.end());
|
||||||
|
|
||||||
|
#if __cplusplus >= 201402L
|
||||||
|
template<class T, size_t N> constexpr T* begin(T (&array)[N]);
|
||||||
|
template<class T, size_t N> constexpr T* end(T (&array)[N]);
|
||||||
|
#else
|
||||||
template<class T, size_t N> T* begin(T (&array)[N]);
|
template<class T, size_t N> T* begin(T (&array)[N]);
|
||||||
template<class T, size_t N> T* end(T (&array)[N]);
|
template<class T, size_t N> T* end(T (&array)[N]);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue