Skip to content

Commit bf37e1f

Browse files
authored
Fix main() signature to comply with libc++ testing requirements
Changed main() signature from main() to main(int, char**) as per the Testing libc++ documentation requirement (https://libcxx.llvm.org/TestingLibcxx.html). The documentation states: "Some platforms where libc++ is tested have requirement on the signature of main and require main to explicitly return a value. Therefore the typical main function should look like: int main(int, char**)"
1 parent 95c0ce8 commit bf37e1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test_copy_file_multithreaded.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ void test_copy_file_multithreaded() {
7878
fs::remove_all(dest_dir);
7979
}
8080

81-
int main() {
81+
int main(int, char**) {
8282
std::cout << "Testing copy_file in multithreaded environment (Issue #169261)\n";
8383
test_copy_file_multithreaded();
8484
std::cout << "Test finished\n";

0 commit comments

Comments
 (0)