[cfe-commits] [libcxx] r131327 - /libcxx/trunk/test/input.output/file.streams/c.files/cstdio.pass.cpp

Howard Hinnant hhinnant at apple.com
Fri May 13 17:04:05 PDT 2011


Author: hhinnant
Date: Fri May 13 19:04:05 2011
New Revision: 131327

URL: http://llvm.org/viewvc/llvm-project?rev=131327&view=rev
Log:
Suppress some warings in the tests.

Modified:
    libcxx/trunk/test/input.output/file.streams/c.files/cstdio.pass.cpp

Modified: libcxx/trunk/test/input.output/file.streams/c.files/cstdio.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/input.output/file.streams/c.files/cstdio.pass.cpp?rev=131327&r1=131326&r2=131327&view=diff
==============================================================================
--- libcxx/trunk/test/input.output/file.streams/c.files/cstdio.pass.cpp (original)
+++ libcxx/trunk/test/input.output/file.streams/c.files/cstdio.pass.cpp Fri May 13 19:04:05 2011
@@ -95,19 +95,19 @@
     static_assert((std::is_same<decltype(std::freopen("", "", fp)), std::FILE*>::value), "");
     static_assert((std::is_same<decltype(std::setbuf(fp,cp)), void>::value), "");
     static_assert((std::is_same<decltype(std::vfprintf(fp,"",va)), int>::value), "");
-    static_assert((std::is_same<decltype(std::fprintf(fp,"")), int>::value), "");
+    static_assert((std::is_same<decltype(std::fprintf(fp," ")), int>::value), "");
     static_assert((std::is_same<decltype(std::fscanf(fp,"")), int>::value), "");
-    static_assert((std::is_same<decltype(std::printf("")), int>::value), "");
-    static_assert((std::is_same<decltype(std::scanf("")), int>::value), "");
-    static_assert((std::is_same<decltype(std::snprintf(cp,0,"")), int>::value), "");
-    static_assert((std::is_same<decltype(std::sprintf(cp,"")), int>::value), "");
+    static_assert((std::is_same<decltype(std::printf(" ")), int>::value), "");
+    static_assert((std::is_same<decltype(std::scanf(" ")), int>::value), "");
+    static_assert((std::is_same<decltype(std::snprintf(cp,0," ")), int>::value), "");
+    static_assert((std::is_same<decltype(std::sprintf(cp," ")), int>::value), "");
     static_assert((std::is_same<decltype(std::sscanf("","")), int>::value), "");
     static_assert((std::is_same<decltype(std::vfprintf(fp,"",va)), int>::value), "");
     static_assert((std::is_same<decltype(std::vfscanf(fp,"",va)), int>::value), "");
-    static_assert((std::is_same<decltype(std::vprintf("",va)), int>::value), "");
+    static_assert((std::is_same<decltype(std::vprintf(" ",va)), int>::value), "");
     static_assert((std::is_same<decltype(std::vscanf("",va)), int>::value), "");
-    static_assert((std::is_same<decltype(std::vsnprintf(cp,0,"",va)), int>::value), "");
-    static_assert((std::is_same<decltype(std::vsprintf(cp,"",va)), int>::value), "");
+    static_assert((std::is_same<decltype(std::vsnprintf(cp,0," ",va)), int>::value), "");
+    static_assert((std::is_same<decltype(std::vsprintf(cp," ",va)), int>::value), "");
     static_assert((std::is_same<decltype(std::vsscanf("","",va)), int>::value), "");
     static_assert((std::is_same<decltype(std::fgetc(fp)), int>::value), "");
     static_assert((std::is_same<decltype(std::fgets(cp,0,fp)), char*>::value), "");





More information about the cfe-commits mailing list