summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/language.support/support.runtime/ctime.pass.cpp
diff options
context:
space:
mode:
authorMarshall Clow <mclow.lists@gmail.com>2018-08-15 21:19:08 +0000
committerMarshall Clow <mclow.lists@gmail.com>2018-08-15 21:19:08 +0000
commit171c77b7dad4a050aca23ff7ca1b75f87560fefb (patch)
tree6e19d3c7bf7e6d2f1b2867adcc984453f9192209 /libcxx/test/std/language.support/support.runtime/ctime.pass.cpp
parent9a389fbd79dc0681e898a2e40a00cbbe1b3eba72 (diff)
downloadbcm5719-llvm-171c77b7dad4a050aca23ff7ca1b75f87560fefb.tar.gz
bcm5719-llvm-171c77b7dad4a050aca23ff7ca1b75f87560fefb.zip
Selectively import timespec_get into namespace std, since some C libraries don't have it. Reviewed as https://reviews.llvm.org/D50799
llvm-svn: 339816
Diffstat (limited to 'libcxx/test/std/language.support/support.runtime/ctime.pass.cpp')
-rw-r--r--libcxx/test/std/language.support/support.runtime/ctime.pass.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/test/std/language.support/support.runtime/ctime.pass.cpp b/libcxx/test/std/language.support/support.runtime/ctime.pass.cpp
index 908dc480884..d80bc198293 100644
--- a/libcxx/test/std/language.support/support.runtime/ctime.pass.cpp
+++ b/libcxx/test/std/language.support/support.runtime/ctime.pass.cpp
@@ -45,7 +45,7 @@ int main()
static_assert((std::is_same<decltype(std::difftime(t,t)), double>::value), "");
static_assert((std::is_same<decltype(std::mktime(&tm)), std::time_t>::value), "");
static_assert((std::is_same<decltype(std::time(&t)), std::time_t>::value), "");
-#if TEST_STD_VER > 14 && defined(TEST_HAS_C11_FEATURES)
+#if TEST_STD_VER > 14 && defined(TEST_HAS_TIMESPEC_GET)
static_assert((std::is_same<decltype(std::timespec_get(nullptr, 0)), int>::value), "");
#endif
#ifndef _LIBCPP_HAS_NO_THREAD_UNSAFE_C_FUNCTIONS
OpenPOWER on IntegriCloud