summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/input.output
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2016-06-14 03:21:49 +0000
committerEric Fiselier <eric@efcs.ca>2016-06-14 03:21:49 +0000
commit3245e1f34b67d24bfd71fb7d2f100be1046a1b5f (patch)
treea96bd37aa26927a49e5cf8b01168f7e6f21b8bbf /libcxx/test/std/input.output
parent15b311c75244afa19d0cfd4057b397e5829ebad4 (diff)
downloadbcm5719-llvm-3245e1f34b67d24bfd71fb7d2f100be1046a1b5f.tar.gz
bcm5719-llvm-3245e1f34b67d24bfd71fb7d2f100be1046a1b5f.zip
Fix warnings in tests.
llvm-svn: 272629
Diffstat (limited to 'libcxx/test/std/input.output')
-rw-r--r--libcxx/test/std/input.output/file.streams/c.files/cinttypes.pass.cpp2
-rw-r--r--libcxx/test/std/input.output/file.streams/c.files/cstdio.pass.cpp2
-rw-r--r--libcxx/test/std/input.output/iostream.format/ext.manip/get_time.pass.cpp4
-rw-r--r--libcxx/test/std/input.output/iostream.format/ext.manip/put_time.pass.cpp4
4 files changed, 6 insertions, 6 deletions
diff --git a/libcxx/test/std/input.output/file.streams/c.files/cinttypes.pass.cpp b/libcxx/test/std/input.output/file.streams/c.files/cinttypes.pass.cpp
index 4cb2c4c2f44..8937950522c 100644
--- a/libcxx/test/std/input.output/file.streams/c.files/cinttypes.pass.cpp
+++ b/libcxx/test/std/input.output/file.streams/c.files/cinttypes.pass.cpp
@@ -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), "");
diff --git a/libcxx/test/std/input.output/file.streams/c.files/cstdio.pass.cpp b/libcxx/test/std/input.output/file.streams/c.files/cstdio.pass.cpp
index c42e205fd35..4c2be7d4aa9 100644
--- a/libcxx/test/std/input.output/file.streams/c.files/cstdio.pass.cpp
+++ b/libcxx/test/std/input.output/file.streams/c.files/cstdio.pass.cpp
@@ -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;
diff --git a/libcxx/test/std/input.output/iostream.format/ext.manip/get_time.pass.cpp b/libcxx/test/std/input.output/iostream.format/ext.manip/get_time.pass.cpp
index a8b82a62bb6..553c2b2eb3a 100644
--- a/libcxx/test/std/input.output/iostream.format/ext.manip/get_time.pass.cpp
+++ b/libcxx/test/std/input.output/iostream.format/ext.manip/get_time.pass.cpp
@@ -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);
diff --git a/libcxx/test/std/input.output/iostream.format/ext.manip/put_time.pass.cpp b/libcxx/test/std/input.output/iostream.format/ext.manip/put_time.pass.cpp
index f4e3ded1745..e907708d0f2 100644
--- a/libcxx/test/std/input.output/iostream.format/ext.manip/put_time.pass.cpp
+++ b/libcxx/test/std/input.output/iostream.format/ext.manip/put_time.pass.cpp
@@ -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;
OpenPOWER on IntegriCloud