summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/input.output
diff options
context:
space:
mode:
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