[libcxx-commits] [libcxx] fdb709b - [libc++] Fix some missed `return 0` statements in test `main` functions.
Konstantin Varlamov via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Jan 30 00:31:16 PST 2023
Author: Konstantin Varlamov
Date: 2023-01-30T00:30:52-08:00
New Revision: fdb709be7b503f952d641fbc3946e0faf400c398
URL: https://github.com/llvm/llvm-project/commit/fdb709be7b503f952d641fbc3946e0faf400c398
DIFF: https://github.com/llvm/llvm-project/commit/fdb709be7b503f952d641fbc3946e0faf400c398.diff
LOG: [libc++] Fix some missed `return 0` statements in test `main` functions.
Added:
Modified:
libcxx/test/libcxx/iterators/iterator_with_data.pass.cpp
libcxx/test/libcxx/utilities/exception_guard.no_exceptions.pass.cpp
Removed:
################################################################################
diff --git a/libcxx/test/libcxx/iterators/iterator_with_data.pass.cpp b/libcxx/test/libcxx/iterators/iterator_with_data.pass.cpp
index a4c2b088d065e..b2e3ffe0be90e 100644
--- a/libcxx/test/libcxx/iterators/iterator_with_data.pass.cpp
+++ b/libcxx/test/libcxx/iterators/iterator_with_data.pass.cpp
@@ -36,4 +36,6 @@ constexpr bool test() {
int main(int, char**) {
test();
static_assert(test());
+
+ return 0;
}
diff --git a/libcxx/test/libcxx/utilities/exception_guard.no_exceptions.pass.cpp b/libcxx/test/libcxx/utilities/exception_guard.no_exceptions.pass.cpp
index 0b6233e3ef67e..d844f3c7f7ff4 100644
--- a/libcxx/test/libcxx/utilities/exception_guard.no_exceptions.pass.cpp
+++ b/libcxx/test/libcxx/utilities/exception_guard.no_exceptions.pass.cpp
@@ -16,4 +16,6 @@ int main(int, char**) {
auto guard = std::__make_exception_guard([] {});
auto guard2 = std::move(guard);
guard2.__complete();
+
+ return 0;
}
More information about the libcxx-commits
mailing list