From ba364478df0735b8e7fa1ee1e7711a385b4d2db0 Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Wed, 17 Aug 2016 14:38:58 +0100 Subject: [PATCH] Adjust testcase for C++14 compatibility * testsuite/24_iterators/headers/iterator/range_access.cc: Adjust expected signatures for C++14 compatibility. From-SVN: r239533 --- libstdc++-v3/ChangeLog | 3 +++ .../24_iterators/headers/iterator/range_access.cc | 8 ++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index bbf2b19665d..2016a95c5da 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,8 @@ 2016-08-17 Jonathan Wakely + * testsuite/24_iterators/headers/iterator/range_access.cc: Adjust + expected signatures for C++14 compatibility. + PR libstdc++/77264 * include/bits/basic_string.h (operator=(__sv_type) (append(__sv_type), assign(__sv_type), insert(size_type, __sv_type)) diff --git a/libstdc++-v3/testsuite/24_iterators/headers/iterator/range_access.cc b/libstdc++-v3/testsuite/24_iterators/headers/iterator/range_access.cc index b66381ecd45..873a730274e 100644 --- a/libstdc++-v3/testsuite/24_iterators/headers/iterator/range_access.cc +++ b/libstdc++-v3/testsuite/24_iterators/headers/iterator/range_access.cc @@ -1,5 +1,4 @@ -// { dg-do compile } -// { dg-options "-std=gnu++11" } +// { dg-do compile { target c++11 } } // Copyright (C) 2010-2016 Free Software Foundation, Inc. // @@ -28,6 +27,11 @@ namespace std template auto end(C& c) -> decltype(c.end()); template auto end(const C& c) -> decltype(c.end()); +#if __cplusplus >= 201402L + template constexpr T* begin(T (&array)[N]); + template constexpr T* end(T (&array)[N]); +#else template T* begin(T (&array)[N]); template T* end(T (&array)[N]); +#endif } -- 2.30.2