[libcxx] r215329 - fix stdio.h test to reflect removal of ::gets in c++14

Eric Fiselier eric at efcs.ca
Sun Aug 10 15:39:11 PDT 2014


Author: ericwf
Date: Sun Aug 10 17:39:11 2014
New Revision: 215329

URL: http://llvm.org/viewvc/llvm-project?rev=215329&view=rev
Log:
fix stdio.h test to reflect removal of ::gets in c++14

Modified:
    libcxx/trunk/test/depr/depr.c.headers/stdio_h.pass.cpp

Modified: libcxx/trunk/test/depr/depr.c.headers/stdio_h.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/depr/depr.c.headers/stdio_h.pass.cpp?rev=215329&r1=215328&r2=215329&view=diff
==============================================================================
--- libcxx/trunk/test/depr/depr.c.headers/stdio_h.pass.cpp (original)
+++ libcxx/trunk/test/depr/depr.c.headers/stdio_h.pass.cpp Sun Aug 10 17:39:11 2014
@@ -117,7 +117,9 @@ int main()
     static_assert((std::is_same<decltype(fputs("",fp)), int>::value), "");
     static_assert((std::is_same<decltype(getc(fp)), int>::value), "");
     static_assert((std::is_same<decltype(getchar()), int>::value), "");
+#if _LIBCPP_STD_VER < 14
     static_assert((std::is_same<decltype(gets(cp)), char*>::value), "");
+#endif
     static_assert((std::is_same<decltype(putc(0,fp)), int>::value), "");
     static_assert((std::is_same<decltype(putchar(0)), int>::value), "");
     static_assert((std::is_same<decltype(puts("")), int>::value), "");





More information about the cfe-commits mailing list