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 d928c65..284ced6 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 a9cb54e..f4d4f7e 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 9292fa6..79fb0f4 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};