Skip to content

Commit 4862447

Browse files
committed
test: use libcxx template for main()
1 parent 29e17f3 commit 4862447

File tree

6 files changed

+16
-10
lines changed

6 files changed

+16
-10
lines changed

libcxx/test/std/ranges/range.adaptors/range.cartesian.product.view/begin.pass.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@ constexpr bool test() {
100100
return true;
101101
}
102102

103-
int main() {
103+
int main(int, char**) {
104104
test();
105105
static_assert(test());
106+
return 0;
106107
}

libcxx/test/std/ranges/range.adaptors/range.cartesian.product.view/ctor.default.pass.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ constexpr bool test() {
6262
return true;
6363
}
6464

65-
int main() {
65+
int main(int, char**) {
6666
test();
6767
static_assert(test());
68-
}
68+
return 0;
69+
}

libcxx/test/std/ranges/range.adaptors/range.cartesian.product.view/ctor.pass.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ constexpr bool test() {
3030
return true;
3131
}
3232

33-
int main() {
33+
int main(int, char**) {
3434
test();
3535
static_assert(test());
36+
return 0;
3637
}

libcxx/test/std/ranges/range.adaptors/range.cartesian.product.view/ctor.views.pass.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ constexpr bool test() {
8383
return true;
8484
}
8585

86-
int main() {
86+
int main(int, char**) {
8787
test();
8888
static_assert(test());
89-
}
89+
return 0;
90+
}

libcxx/test/std/ranges/range.adaptors/range.cartesian.product.view/example_from_std.pass.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ constexpr bool test() {
6565
return true;
6666
}
6767

68-
int main() {
68+
int main(int, char**) {
6969
test();
7070
static_assert(test());
71-
}
71+
return 0;
72+
}

libcxx/test/std/ranges/range.adaptors/range.cartesian.product.view/size.pass.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ constexpr bool test() {
3636
return true;
3737
}
3838

39-
int main() {
39+
int main(int, char**) {
4040
test();
4141
static_assert(test());
42-
}
42+
return 0;
43+
}

0 commit comments

Comments
 (0)