Skip to content

Commit c31cf74

Browse files
committed
[libc++] Add return 0 to some main() functions
This unbreaks the tests when running in freestanding mode.
1 parent 73205fe commit c31cf74

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

libcxx/test/std/utilities/optional/optional.monadic/and_then.pass.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,4 +259,5 @@ constexpr bool test() {
259259
int main(int, char**) {
260260
test();
261261
static_assert(test());
262+
return 0;
262263
}

libcxx/test/std/utilities/optional/optional.monadic/or_else.pass.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,5 @@ constexpr bool test() {
6969
int main(int, char**) {
7070
test();
7171
static_assert(test());
72+
return 0;
7273
}

libcxx/test/std/utilities/optional/optional.monadic/transform.pass.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,4 +202,5 @@ constexpr bool test() {
202202
int main(int, char**) {
203203
test();
204204
static_assert(test());
205+
return 0;
205206
}

0 commit comments

Comments
 (0)