diff options
Diffstat (limited to 'test/std/input.output/file.streams/c.files')
5 files changed, 11 insertions, 47 deletions
diff --git a/test/std/input.output/file.streams/c.files/cinttypes.pass.cpp b/test/std/input.output/file.streams/c.files/cinttypes.pass.cpp index 4cb2c4c2f448..8937950522c8 100644 --- a/test/std/input.output/file.streams/c.files/cinttypes.pass.cpp +++ b/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/test/std/input.output/file.streams/c.files/cstdio.pass.cpp b/test/std/input.output/file.streams/c.files/cstdio.pass.cpp index a06f0443d701..4c2be7d4aa9e 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 @@ -78,17 +78,24 @@ #include <cstdarg> +#if defined(__clang__) #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wformat-zero-length" #pragma clang diagnostic ignored "-Wdeprecated-declarations" +#endif 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; + ((void)fp); // Prevent unused warning + ((void)fpos); // Prevent unused warning + ((void)s); // Prevent unused warning + ((void)cp); // Prevent unused warning + ((void)va); // Prevent unused warning static_assert((std::is_same<decltype(std::fclose(fp)), int>::value), ""); static_assert((std::is_same<decltype(std::fflush(fp)), int>::value), ""); static_assert((std::is_same<decltype(std::setbuf(fp,cp)), void>::value), ""); diff --git a/test/std/input.output/file.streams/c.files/gets.fail.cpp b/test/std/input.output/file.streams/c.files/gets.fail.cpp index 4250e23c11c2..064d72cd9e4a 100644 --- a/test/std/input.output/file.streams/c.files/gets.fail.cpp +++ b/test/std/input.output/file.streams/c.files/gets.fail.cpp @@ -7,17 +7,14 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // test <cstdio> -// gets +// gets #include <cstdio> int main() { -#if _LIBCPP_STD_VER > 11 (void) std::gets((char *) NULL); -#else -#error -#endif } diff --git a/test/std/input.output/file.streams/c.files/version_ccstdio.pass.cpp b/test/std/input.output/file.streams/c.files/version_ccstdio.pass.cpp deleted file mode 100644 index 0d7fc5605324..000000000000 --- a/test/std/input.output/file.streams/c.files/version_ccstdio.pass.cpp +++ /dev/null @@ -1,20 +0,0 @@ -//===----------------------------------------------------------------------===// -// -// The LLVM Compiler Infrastructure -// -// This file is dual licensed under the MIT and the University of Illinois Open -// Source Licenses. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// - -// <cstdio> - -#include <cstdio> - -#ifndef _LIBCPP_VERSION -#error _LIBCPP_VERSION not defined -#endif - -int main() -{ -} diff --git a/test/std/input.output/file.streams/c.files/version_cinttypes.pass.cpp b/test/std/input.output/file.streams/c.files/version_cinttypes.pass.cpp deleted file mode 100644 index bfd379e43493..000000000000 --- a/test/std/input.output/file.streams/c.files/version_cinttypes.pass.cpp +++ /dev/null @@ -1,20 +0,0 @@ -//===----------------------------------------------------------------------===// -// -// The LLVM Compiler Infrastructure -// -// This file is dual licensed under the MIT and the University of Illinois Open -// Source Licenses. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// - -// <cinttypes> - -#include <cinttypes> - -#ifndef _LIBCPP_VERSION -#error _LIBCPP_VERSION not defined -#endif - -int main() -{ -} |