Fix missing returns in libstdc++ testsuite
authorJonathan Wakely <jwakely@redhat.com>
Thu, 21 Jul 2016 19:38:44 +0000 (20:38 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 21 Jul 2016 19:38:44 +0000 (20:38 +0100)
* testsuite/24_iterators/container_access.cc: Fix missing returns.
* testsuite/24_iterators/range_access_cpp14.cc: Likewise.

From-SVN: r238608

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/24_iterators/container_access.cc
libstdc++-v3/testsuite/24_iterators/range_access_cpp14.cc

index d928c65e73d14b7314a806b05c821dba2b9509e7..284ced622f83608fbee1a0baadf433fcac6bdd87 100644 (file)
@@ -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.
index a9cb54e15f7679bc11674e8fdbb42cb57b693dcc..f4d4f7eb7f58c05eaad942d72ebbc5a1eabbf7d0 100644 (file)
@@ -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};
index 9292fa65d19904e4f1e224044becf5c20b820b24..79fb0f4b76894cc3723c1798644963a83dc24d12 100644 (file)
@@ -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};