From 0a024155c41930a6994d08157a26900832cdfe63 Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Thu, 21 Jul 2016 20:38:44 +0100 Subject: [PATCH] Fix missing returns in libstdc++ testsuite * testsuite/24_iterators/container_access.cc: Fix missing returns. * testsuite/24_iterators/range_access_cpp14.cc: Likewise. From-SVN: r238608 --- libstdc++-v3/ChangeLog | 3 +++ libstdc++-v3/testsuite/24_iterators/container_access.cc | 4 ++-- libstdc++-v3/testsuite/24_iterators/range_access_cpp14.cc | 4 ++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index d928c65..284ced6 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,8 @@ 2016-07-21 Jonathan Wakely + * testsuite/24_iterators/container_access.cc: Fix missing returns. + * testsuite/24_iterators/range_access_cpp14.cc: Likewise. + * testsuite/18_support/new_delete_placement.cc: Don't allocate (and leak) memory for arguments to placement delete. * testsuite/20_util/addressof/1.cc: Don't leak memory. diff --git a/libstdc++-v3/testsuite/24_iterators/container_access.cc b/libstdc++-v3/testsuite/24_iterators/container_access.cc index a9cb54e..f4d4f7e 100644 --- a/libstdc++-v3/testsuite/24_iterators/container_access.cc +++ b/libstdc++-v3/testsuite/24_iterators/container_access.cc @@ -47,7 +47,7 @@ test02() static_assert(!e); } -int +void test03() { std::initializer_list il{1,2,3}; @@ -67,7 +67,7 @@ test03() } -int +void test04() { std::vector v{1,2,3}; diff --git a/libstdc++-v3/testsuite/24_iterators/range_access_cpp14.cc b/libstdc++-v3/testsuite/24_iterators/range_access_cpp14.cc index 9292fa6..79fb0f4b 100644 --- a/libstdc++-v3/testsuite/24_iterators/range_access_cpp14.cc +++ b/libstdc++-v3/testsuite/24_iterators/range_access_cpp14.cc @@ -48,7 +48,7 @@ test02() constexpr auto ce __attribute__((unused)) = std::cend(i); } -int +void test03() { std::initializer_list il{1}; @@ -60,7 +60,7 @@ test03() VERIFY(std::crend(il) == std::reverse_iterator(il.begin())); } -int +void test04() { std::vector v{1}; -- 2.7.4