From: Jonathan Wakely Date: Thu, 21 Jul 2016 19:38:44 +0000 (+0100) Subject: Fix missing returns in libstdc++ testsuite X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0a024155c41930a6994d08157a26900832cdfe63;p=gcc.git 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 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index d928c65e73d..284ced622f8 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 a9cb54e15f7..f4d4f7eb7f5 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 9292fa65d19..79fb0f4b768 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};