Fix warnings in tests.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@272629 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -917,7 +917,7 @@ int main()
|
||||
std::uintmax_t i4 = 0;
|
||||
}
|
||||
{
|
||||
std::imaxdiv_t i1 = {0};
|
||||
std::imaxdiv_t i1 = {};
|
||||
}
|
||||
std::intmax_t i = 0;
|
||||
static_assert((std::is_same<decltype(std::imaxabs(i)), std::intmax_t>::value), "");
|
||||
|
||||
@@ -87,7 +87,7 @@
|
||||
int main()
|
||||
{
|
||||
std::FILE* fp = 0;
|
||||
std::fpos_t fpos = {0};
|
||||
std::fpos_t fpos = {};
|
||||
std::size_t s = 0;
|
||||
char* cp = 0;
|
||||
std::va_list va;
|
||||
|
||||
@@ -44,7 +44,7 @@ int main()
|
||||
testbuf<char> sb(" Sat Dec 31 23:55:59 2061");
|
||||
std::istream is(&sb);
|
||||
is.imbue(std::locale(LOCALE_en_US_UTF_8));
|
||||
std::tm t = {0};
|
||||
std::tm t = {};
|
||||
is >> std::get_time(&t, "%a %b %d %H:%M:%S %Y");
|
||||
assert(t.tm_sec == 59);
|
||||
assert(t.tm_min == 55);
|
||||
@@ -60,7 +60,7 @@ int main()
|
||||
testbuf<wchar_t> sb(L" Sat Dec 31 23:55:59 2061");
|
||||
std::wistream is(&sb);
|
||||
is.imbue(std::locale(LOCALE_en_US_UTF_8));
|
||||
std::tm t = {0};
|
||||
std::tm t = {};
|
||||
is >> std::get_time(&t, L"%a %b %d %H:%M:%S %Y");
|
||||
assert(t.tm_sec == 59);
|
||||
assert(t.tm_min == 55);
|
||||
|
||||
@@ -56,7 +56,7 @@ int main()
|
||||
testbuf<char> sb;
|
||||
std::ostream os(&sb);
|
||||
os.imbue(std::locale(LOCALE_en_US_UTF_8));
|
||||
std::tm t = {0};
|
||||
std::tm t = {};
|
||||
t.tm_sec = 59;
|
||||
t.tm_min = 55;
|
||||
t.tm_hour = 23;
|
||||
@@ -72,7 +72,7 @@ int main()
|
||||
testbuf<wchar_t> sb;
|
||||
std::wostream os(&sb);
|
||||
os.imbue(std::locale(LOCALE_en_US_UTF_8));
|
||||
std::tm t = {0};
|
||||
std::tm t = {};
|
||||
t.tm_sec = 59;
|
||||
t.tm_min = 55;
|
||||
t.tm_hour = 23;
|
||||
|
||||
Reference in New Issue
Block a user