[libcxx-commits] [libcxx] e7b07a6 - [libc++][NFC] Add missing 'return 0' in main() functions

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Thu Jan 13 11:33:14 PST 2022


Author: Louis Dionne
Date: 2022-01-13T14:32:41-05:00
New Revision: e7b07a65388f9cc143cff89762e996efbe25b73f

URL: https://github.com/llvm/llvm-project/commit/e7b07a65388f9cc143cff89762e996efbe25b73f
DIFF: https://github.com/llvm/llvm-project/commit/e7b07a65388f9cc143cff89762e996efbe25b73f.diff

LOG: [libc++][NFC] Add missing 'return 0' in main() functions

Added: 
    

Modified: 
    libcxx/test/std/containers/container.adaptors/queue/queue.cons.alloc/ctor_iterators.pass.cpp
    libcxx/test/std/containers/container.adaptors/queue/queue.cons/ctor_iterators.pass.cpp
    libcxx/test/std/containers/container.adaptors/stack/stack.cons.alloc/ctor_iterators.pass.cpp
    libcxx/test/std/containers/container.adaptors/stack/stack.cons/ctor_iterators.pass.cpp

Removed: 
    


################################################################################
diff  --git a/libcxx/test/std/containers/container.adaptors/queue/queue.cons.alloc/ctor_iterators.pass.cpp b/libcxx/test/std/containers/container.adaptors/queue/queue.cons.alloc/ctor_iterators.pass.cpp
index 90606643b9332..4ac556e4c2c37 100644
--- a/libcxx/test/std/containers/container.adaptors/queue/queue.cons.alloc/ctor_iterators.pass.cpp
+++ b/libcxx/test/std/containers/container.adaptors/queue/queue.cons.alloc/ctor_iterators.pass.cpp
@@ -45,4 +45,6 @@ int main(int, char**) {
   assert(queue.front() == 1);
   queue.pop();
   assert(queue.empty());
+
+  return 0;
 }

diff  --git a/libcxx/test/std/containers/container.adaptors/queue/queue.cons/ctor_iterators.pass.cpp b/libcxx/test/std/containers/container.adaptors/queue/queue.cons/ctor_iterators.pass.cpp
index 192587ca3f5ad..26ac1b605e908 100644
--- a/libcxx/test/std/containers/container.adaptors/queue/queue.cons/ctor_iterators.pass.cpp
+++ b/libcxx/test/std/containers/container.adaptors/queue/queue.cons/ctor_iterators.pass.cpp
@@ -41,4 +41,6 @@ int main(int, char**) {
   assert(queue.front() == 1);
   queue.pop();
   assert(queue.empty());
+
+  return 0;
 }

diff  --git a/libcxx/test/std/containers/container.adaptors/stack/stack.cons.alloc/ctor_iterators.pass.cpp b/libcxx/test/std/containers/container.adaptors/stack/stack.cons.alloc/ctor_iterators.pass.cpp
index 74a59d70a513b..67f822e93c71c 100644
--- a/libcxx/test/std/containers/container.adaptors/stack/stack.cons.alloc/ctor_iterators.pass.cpp
+++ b/libcxx/test/std/containers/container.adaptors/stack/stack.cons.alloc/ctor_iterators.pass.cpp
@@ -45,4 +45,6 @@ int main(int, char**) {
   assert(stack.top() == 4);
   stack.pop();
   assert(stack.empty());
+
+  return 0;
 }

diff  --git a/libcxx/test/std/containers/container.adaptors/stack/stack.cons/ctor_iterators.pass.cpp b/libcxx/test/std/containers/container.adaptors/stack/stack.cons/ctor_iterators.pass.cpp
index 679e5836d5af7..a4c0d0bba2b4e 100644
--- a/libcxx/test/std/containers/container.adaptors/stack/stack.cons/ctor_iterators.pass.cpp
+++ b/libcxx/test/std/containers/container.adaptors/stack/stack.cons/ctor_iterators.pass.cpp
@@ -40,4 +40,6 @@ int main(int, char**) {
   assert(stack.top() == 4);
   stack.pop();
   assert(stack.empty());
+
+  return 0;
 }


        


More information about the libcxx-commits mailing list