[libc++] Add `return 0` to some main() functions

This unbreaks the tests when running in freestanding mode.
This commit is contained in:
Louis Dionne 2022-01-04 09:17:37 -05:00
parent 73205feb00
commit c31cf74c3c
3 changed files with 3 additions and 0 deletions

View File

@ -259,4 +259,5 @@ constexpr bool test() {
int main(int, char**) {
test();
static_assert(test());
return 0;
}

View File

@ -69,4 +69,5 @@ constexpr bool test() {
int main(int, char**) {
test();
static_assert(test());
return 0;
}

View File

@ -202,4 +202,5 @@ constexpr bool test() {
int main(int, char**) {
test();
static_assert(test());
return 0;
}