diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2016-07-21 20:38:44 +0100 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2016-07-21 20:38:44 +0100 |
commit | 0a024155c41930a6994d08157a26900832cdfe63 (patch) | |
tree | 93b7a87904d6075b3aac85942e15e8f1c8839ad0 | |
parent | 22620c14525becbb209ae95ca2ff46412d7c10c6 (diff) |
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
-rw-r--r-- | libstdc++-v3/ChangeLog | 3 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/24_iterators/container_access.cc | 4 | ||||
-rw-r--r-- | 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 d928c65e73d..284ced622f8 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,8 @@ 2016-07-21 Jonathan Wakely <jwakely@redhat.com> + * 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<int> il{1,2,3}; @@ -67,7 +67,7 @@ test03() } -int +void test04() { std::vector<int> 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<int> il{1}; @@ -60,7 +60,7 @@ test03() VERIFY(std::crend(il) == std::reverse_iterator<const int*>(il.begin())); } -int +void test04() { std::vector<int> v{1}; |