diff options
author | Mehdi Amini <mehdi.amini@apple.com> | 2017-03-03 17:24:29 +0000 |
---|---|---|
committer | Mehdi Amini <mehdi.amini@apple.com> | 2017-03-03 17:24:29 +0000 |
commit | c795c2a010758d782f530ab534cb0d68614c3241 (patch) | |
tree | b144702e6abaa899c932c77b7cf1fd53b4c72bd1 /test | |
parent | f4dfb45247a5b306ced6c71b2792530c1551078e (diff) | |
download | external_libcxx-c795c2a010758d782f530ab534cb0d68614c3241.tar.gz external_libcxx-c795c2a010758d782f530ab534cb0d68614c3241.tar.bz2 external_libcxx-c795c2a010758d782f530ab534cb0d68614c3241.zip |
Fix libc++ test to pass in C++03 mode
Was hitting: "error: scalar initializer cannot be empty"
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@296889 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/std/depr/depr.c.headers/stdio_h.pass.cpp | 2 | ||||
-rw-r--r-- | test/std/input.output/file.streams/c.files/cstdio.pass.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/std/depr/depr.c.headers/stdio_h.pass.cpp b/test/std/depr/depr.c.headers/stdio_h.pass.cpp index 8670af6d4..36c37a3be 100644 --- a/test/std/depr/depr.c.headers/stdio_h.pass.cpp +++ b/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/test/std/input.output/file.streams/c.files/cstdio.pass.cpp b/test/std/input.output/file.streams/c.files/cstdio.pass.cpp index 5df8691ef..1f1b0c3fa 100644 --- a/test/std/input.output/file.streams/c.files/cstdio.pass.cpp +++ b/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; |