From dff33c2760e91d02e7f280aa6b615bb64195ac8d Mon Sep 17 00:00:00 2001 From: Mehdi Amini Date: Fri, 3 Mar 2017 17:24:29 +0000 Subject: Fix libc++ test to pass in C++03 mode Was hitting: "error: scalar initializer cannot be empty" llvm-svn: 296889 --- libcxx/test/std/depr/depr.c.headers/stdio_h.pass.cpp | 2 +- libcxx/test/std/input.output/file.streams/c.files/cstdio.pass.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libcxx/test/std/depr/depr.c.headers/stdio_h.pass.cpp b/libcxx/test/std/depr/depr.c.headers/stdio_h.pass.cpp index 8670af6d4da..36c37a3beb3 100644 --- a/libcxx/test/std/depr/depr.c.headers/stdio_h.pass.cpp +++ b/libcxx/test/std/depr/depr.c.headers/stdio_h.pass.cpp @@ -107,7 +107,7 @@ int main() { FILE* fp = 0; - fpos_t fpos = {}; + fpos_t fpos = fpos_t(); size_t s = 0; char* cp = 0; char arr[] = {'a', 'b'}; 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 5df8691ef1f..1f1b0c3faa5 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 @@ -89,7 +89,7 @@ int main() { std::FILE* fp = 0; - std::fpos_t fpos = {}; + std::fpos_t fpos = std::fpos_t(); std::size_t s = 0; char* cp = 0; std::va_list va; -- cgit v1.2.3