[libcxx-commits] [libcxx] c31cf74 - [libc++] Add `return 0` to some main() functions
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Jan 4 06:18:13 PST 2022
Author: Louis Dionne
Date: 2022-01-04T09:18:08-05:00
New Revision: c31cf74c3c3ca8ddd6d695ae7591f6cbfee54a6a
URL: https://github.com/llvm/llvm-project/commit/c31cf74c3c3ca8ddd6d695ae7591f6cbfee54a6a
DIFF: https://github.com/llvm/llvm-project/commit/c31cf74c3c3ca8ddd6d695ae7591f6cbfee54a6a.diff
LOG: [libc++] Add `return 0` to some main() functions
This unbreaks the tests when running in freestanding mode.
Added:
Modified:
libcxx/test/std/utilities/optional/optional.monadic/and_then.pass.cpp
libcxx/test/std/utilities/optional/optional.monadic/or_else.pass.cpp
libcxx/test/std/utilities/optional/optional.monadic/transform.pass.cpp
Removed:
################################################################################
diff --git a/libcxx/test/std/utilities/optional/optional.monadic/and_then.pass.cpp b/libcxx/test/std/utilities/optional/optional.monadic/and_then.pass.cpp
index b2de9c7188dbf..61c61ff737852 100644
--- a/libcxx/test/std/utilities/optional/optional.monadic/and_then.pass.cpp
+++ b/libcxx/test/std/utilities/optional/optional.monadic/and_then.pass.cpp
@@ -259,4 +259,5 @@ constexpr bool test() {
int main(int, char**) {
test();
static_assert(test());
+ return 0;
}
diff --git a/libcxx/test/std/utilities/optional/optional.monadic/or_else.pass.cpp b/libcxx/test/std/utilities/optional/optional.monadic/or_else.pass.cpp
index 2d9a81ac883c4..ccc94ab9be2cb 100644
--- a/libcxx/test/std/utilities/optional/optional.monadic/or_else.pass.cpp
+++ b/libcxx/test/std/utilities/optional/optional.monadic/or_else.pass.cpp
@@ -69,4 +69,5 @@ constexpr bool test() {
int main(int, char**) {
test();
static_assert(test());
+ return 0;
}
diff --git a/libcxx/test/std/utilities/optional/optional.monadic/transform.pass.cpp b/libcxx/test/std/utilities/optional/optional.monadic/transform.pass.cpp
index 59c559d149afb..209c8a34da050 100644
--- a/libcxx/test/std/utilities/optional/optional.monadic/transform.pass.cpp
+++ b/libcxx/test/std/utilities/optional/optional.monadic/transform.pass.cpp
@@ -202,4 +202,5 @@ constexpr bool test() {
int main(int, char**) {
test();
static_assert(test());
+ return 0;
}
More information about the libcxx-commits
mailing list