From 1f9e03f04d4fd0f9c76bded4ad0e43fc80e480fa Mon Sep 17 00:00:00 2001 From: Marshall Clow Date: Tue, 31 Jul 2018 23:39:12 +0000 Subject: Final bit of P0063 - make sure that aligned_alloc is available when the underlying C library supports it llvm-svn: 338457 --- libcxx/test/std/depr/depr.c.headers/stdlib_h.pass.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'libcxx/test/std/depr') diff --git a/libcxx/test/std/depr/depr.c.headers/stdlib_h.pass.cpp b/libcxx/test/std/depr/depr.c.headers/stdlib_h.pass.cpp index 1680f4349bb..07ffa0b7551 100644 --- a/libcxx/test/std/depr/depr.c.headers/stdlib_h.pass.cpp +++ b/libcxx/test/std/depr/depr.c.headers/stdlib_h.pass.cpp @@ -12,6 +12,8 @@ #include #include +#include "test_macros.h" + // As of 1/10/2015 clang emits a -Wnonnull warnings even if the warning occurs // in an unevaluated context. For this reason we manually suppress the warning. #if defined(__clang__) @@ -83,6 +85,14 @@ int main() static_assert((std::is_same::value), ""); static_assert((std::is_same::value), ""); static_assert((std::is_same::value), ""); + +// Microsoft does not implement aligned_alloc in their C library +#ifndef TEST_COMPILER_C1XX +#if TEST_STD_VER > 14 && defined(TEST_HAS_C11_FEATURES) + static_assert((std::is_same::value), ""); +#endif +#endif + static_assert((std::is_same::value), ""); static_assert((std::is_same::value), ""); static_assert((std::is_same::value), ""); -- cgit v1.2.3