Skip to content

Commit

Permalink
[libc++][NFC] Fix incorrect main signatures in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ldionne committed Oct 12, 2022
1 parent 1379899 commit 8f7ae24
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion libcxx/test/libcxx/algorithms/callable.verify.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

#include <algorithm>

int main() {
void f() {
struct S {
int i;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
#include "filesystem_include.h"
#include "filesystem_test_helper.h"

int main() {
int main(int, char**) {
scoped_test_env env;
fs::path const tmpdir = env.create_dir("mydir");
fs::path const victim_del_path = tmpdir / "victim_del";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

#include "test_macros.h"

int main() {
void f() {
std::ostringstream s;

#ifndef TEST_HAS_NO_WIDE_CHARACTERS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ template class std::basic_string<char16, string16_char_traits>;
#else
extern template class std::basic_string<char16, string16_char_traits>;

int main() {
int main(int, char**) {
std::basic_string<char16, string16_char_traits> s;
s.shrink_to_fit();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ constexpr bool test() {
return true;
}

int main(int, const char**) {
int main(int, char**) {
test();
// gcc cannot have mutable member in constant expression
#if !defined(TEST_COMPILER_GCC)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ constexpr bool test() {
return true;
}

int main(int, const char**) {
int main(int, char**) {
test();
// gcc cannot have mutable member in constant expression
#if !defined(TEST_COMPILER_GCC)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ constexpr bool test() {
return true;
}

int main(int, const char**) {
int main(int, char**) {
test();
// gcc cannot have mutable member in constant expression
#if !defined(TEST_COMPILER_GCC)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ constexpr bool test() {
return true;
}

int main(int, const char**) {
int main(int, char**) {
test();
// gcc cannot have mutable member in constant expression
#if !defined(TEST_COMPILER_GCC)
Expand Down

0 comments on commit 8f7ae24

Please sign in to comment.