[libcxx-commits] [libcxx] c01260a - [libc++] Add missing `return 0` to main() functions in the tests
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Jan 10 05:38:22 PST 2022
Author: Louis Dionne
Date: 2022-01-10T08:38:18-05:00
New Revision: c01260a781df727c98f6dc16b6233bd2395f5fed
URL: https://github.com/llvm/llvm-project/commit/c01260a781df727c98f6dc16b6233bd2395f5fed
DIFF: https://github.com/llvm/llvm-project/commit/c01260a781df727c98f6dc16b6233bd2395f5fed.diff
LOG: [libc++] Add missing `return 0` to main() functions in the tests
Added:
Modified:
libcxx/test/libcxx/ranges/range.access/begin.incomplete_type.sh.cpp
libcxx/test/libcxx/ranges/range.access/end.incomplete_type.pass.cpp
Removed:
################################################################################
diff --git a/libcxx/test/libcxx/ranges/range.access/begin.incomplete_type.sh.cpp b/libcxx/test/libcxx/ranges/range.access/begin.incomplete_type.sh.cpp
index 0bf359900145e..cc27789c04f3d 100644
--- a/libcxx/test/libcxx/ranges/range.access/begin.incomplete_type.sh.cpp
+++ b/libcxx/test/libcxx/ranges/range.access/begin.incomplete_type.sh.cpp
@@ -69,6 +69,7 @@ int main(int, char**)
{
test();
static_assert(test());
+ return 0;
}
#endif // defined(TU1)
diff --git a/libcxx/test/libcxx/ranges/range.access/end.incomplete_type.pass.cpp b/libcxx/test/libcxx/ranges/range.access/end.incomplete_type.pass.cpp
index 4b83ca8945a31..b4e9068faad69 100644
--- a/libcxx/test/libcxx/ranges/range.access/end.incomplete_type.pass.cpp
+++ b/libcxx/test/libcxx/ranges/range.access/end.incomplete_type.pass.cpp
@@ -43,4 +43,5 @@ int main(int, char**)
{
test();
static_assert(test());
+ return 0;
}
More information about the libcxx-commits
mailing list