Skip to content

Commit 5b90065

Browse files
committed
[libc++][NFC] Fix incorrect main() signatures
1 parent c3f7502 commit 5b90065

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

libcxx/test/std/containers/sequences/vector/vector.modifiers/destroy_elements.pass.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,11 @@ TEST_CONSTEXPR_CXX20 bool test() {
6464
return true;
6565
}
6666

67-
int main() {
67+
int main(int, char**) {
6868
test();
6969
#if TEST_STD_VER >= 20
7070
static_assert(test());
7171
#endif
72+
73+
return 0;
7274
}

libcxx/test/std/numerics/c.math/hermite.pass.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,9 @@ struct TestInt {
350350
}
351351
};
352352

353-
int main() {
353+
int main(int, char**) {
354354
types::for_each(types::floating_point_types(), TestFloat());
355355
types::for_each(types::type_list<short, int, long, long long>(), TestInt());
356+
357+
return 0;
356358
}

libcxx/test/std/time/time.zone/time.zone.info/time.zone.info.local/local_info.members.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
#include <string>
3232
#include <type_traits>
3333

34-
int main(int, const char**) {
34+
int main(int, char**) {
3535
{
3636
constexpr const int& result = std::chrono::local_info::unique;
3737
static_assert(result == 0);

libcxx/test/std/time/time.zone/time.zone.info/time.zone.info.sys/sys_info.members.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
#include <string>
2929
#include <type_traits>
3030

31-
int main(int, const char**) {
31+
int main(int, char**) {
3232
static_assert(std::is_aggregate_v<std::chrono::sys_info>);
3333

3434
std::chrono::sys_info sys_info{

0 commit comments

Comments
 (0)