[NFC] Normalize some test 'main' signatures

There were 3 tests with 'int main(void)', and 6 with the return type on a different line. I'm about to send a patch for main in tests, and this NFC change is unrelated.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@350770 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
JF Bastien
2019-01-09 22:56:45 +00:00
parent 0ef5c29792
commit 668faeab19
9 changed files with 9 additions and 15 deletions

View File

@@ -33,8 +33,7 @@ namespace std
};
}
int
main()
int main()
{
typedef std::unordered_map<Key, int> MapT;
typedef MapT::iterator Iter;

View File

@@ -46,7 +46,7 @@ static void test(std::ios_base::fmtflags fmt, const char *expected)
assert(ss.str() == expected);
}
int main(void)
int main()
{
const std::ios_base::fmtflags o = std::ios_base::oct;
const std::ios_base::fmtflags d = std::ios_base::dec;

View File

@@ -52,7 +52,7 @@ void check_limits()
}
}
int main(void)
int main()
{
check_limits<short>();
check_limits<unsigned short>();

View File

@@ -149,7 +149,7 @@ void test_negate() {
}
}
int main(void)
int main()
{
test_neg_one<long>();
test_neg_one<long long>();

View File

@@ -63,8 +63,7 @@ test4()
assert((std::regex_match(target, smatch, regex)));
}
int
main()
int main()
{
test1();
test2();

View File

@@ -184,8 +184,7 @@ struct test_signed : roundtrip_test_base<T>
}
};
int
main()
int main()
{
run<test_basics>(integrals);
run<test_signed>(all_signed);

View File

@@ -82,8 +82,7 @@ struct test_signed : to_chars_test_base<T>
}
};
int
main()
int main()
{
run<test_basics>(integrals);
run<test_signed>(all_signed);

View File

@@ -42,8 +42,7 @@ struct plus_one
}
};
int
main()
int main()
{
using std::placeholders::_1;

View File

@@ -26,8 +26,7 @@ struct X
void operator()() {}
};
int
main()
int main()
{
X x;
std::function<void()> f(x);