summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMehdi Amini <mehdi.amini@apple.com>2017-03-03 17:24:29 +0000
committerMehdi Amini <mehdi.amini@apple.com>2017-03-03 17:24:29 +0000
commitdff33c2760e91d02e7f280aa6b615bb64195ac8d (patch)
tree48fd4ff7f3781935c5bb61b910e0bb1a093aea07
parentb6e1aa58fd226c1c1e87c8f8ca4f133503afa0a2 (diff)
downloadbcm5719-llvm-dff33c2760e91d02e7f280aa6b615bb64195ac8d.tar.gz
bcm5719-llvm-dff33c2760e91d02e7f280aa6b615bb64195ac8d.zip
Fix libc++ test to pass in C++03 mode
Was hitting: "error: scalar initializer cannot be empty" llvm-svn: 296889
-rw-r--r--libcxx/test/std/depr/depr.c.headers/stdio_h.pass.cpp2
-rw-r--r--libcxx/test/std/input.output/file.streams/c.files/cstdio.pass.cpp2
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;
OpenPOWER on IntegriCloud