[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:
@@ -33,8 +33,7 @@ namespace std
|
||||
};
|
||||
}
|
||||
|
||||
int
|
||||
main()
|
||||
int main()
|
||||
{
|
||||
typedef std::unordered_map<Key, int> MapT;
|
||||
typedef MapT::iterator Iter;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -52,7 +52,7 @@ void check_limits()
|
||||
}
|
||||
}
|
||||
|
||||
int main(void)
|
||||
int main()
|
||||
{
|
||||
check_limits<short>();
|
||||
check_limits<unsigned short>();
|
||||
|
||||
@@ -149,7 +149,7 @@ void test_negate() {
|
||||
}
|
||||
}
|
||||
|
||||
int main(void)
|
||||
int main()
|
||||
{
|
||||
test_neg_one<long>();
|
||||
test_neg_one<long long>();
|
||||
|
||||
@@ -63,8 +63,7 @@ test4()
|
||||
assert((std::regex_match(target, smatch, regex)));
|
||||
}
|
||||
|
||||
int
|
||||
main()
|
||||
int main()
|
||||
{
|
||||
test1();
|
||||
test2();
|
||||
|
||||
@@ -184,8 +184,7 @@ struct test_signed : roundtrip_test_base<T>
|
||||
}
|
||||
};
|
||||
|
||||
int
|
||||
main()
|
||||
int main()
|
||||
{
|
||||
run<test_basics>(integrals);
|
||||
run<test_signed>(all_signed);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -42,8 +42,7 @@ struct plus_one
|
||||
}
|
||||
};
|
||||
|
||||
int
|
||||
main()
|
||||
int main()
|
||||
{
|
||||
using std::placeholders::_1;
|
||||
|
||||
|
||||
@@ -26,8 +26,7 @@ struct X
|
||||
void operator()() {}
|
||||
};
|
||||
|
||||
int
|
||||
main()
|
||||
int main()
|
||||
{
|
||||
X x;
|
||||
std::function<void()> f(x);
|
||||
|
||||
Reference in New Issue
Block a user