summaryrefslogtreecommitdiffstats
path: root/libcxx/test
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2014-08-10 22:39:11 +0000
committerEric Fiselier <eric@efcs.ca>2014-08-10 22:39:11 +0000
commit399e99ae75832dd8179c00a167c1b0172bde0627 (patch)
tree788b84ad5557fdd24726bade32df6cc37107339a /libcxx/test
parented8885b40273b84c2e1f946f1ad0cb484c737821 (diff)
downloadbcm5719-llvm-399e99ae75832dd8179c00a167c1b0172bde0627.tar.gz
bcm5719-llvm-399e99ae75832dd8179c00a167c1b0172bde0627.zip
fix stdio.h test to reflect removal of ::gets in c++14
llvm-svn: 215329
Diffstat (limited to 'libcxx/test')
-rw-r--r--libcxx/test/depr/depr.c.headers/stdio_h.pass.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/libcxx/test/depr/depr.c.headers/stdio_h.pass.cpp b/libcxx/test/depr/depr.c.headers/stdio_h.pass.cpp
index 8e236e32b8e..d4cfbc80a5c 100644
--- a/libcxx/test/depr/depr.c.headers/stdio_h.pass.cpp
+++ b/libcxx/test/depr/depr.c.headers/stdio_h.pass.cpp
@@ -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), "");
OpenPOWER on IntegriCloud