From 0a890c95ca49e819d6cb1b24ec388cc7f5bd0cbb Mon Sep 17 00:00:00 2001 From: Billy Robert O'Neal III Date: Sat, 20 Oct 2018 03:35:45 +0000 Subject: [PATCH] [libcxx] [test] Don't detect Windows' UCRT with TEST_COMPILER_C1XX The test is trying to avoid saying aligned_alloc on Windows' UCRT, which does not (and can not) implement aligned_alloc. However, it's testing for c1xx, meaning clang on Windows will fail this test when using the UCRT. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@344829 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/std/depr/depr.c.headers/stdlib_h.pass.cpp | 4 +--- test/std/language.support/support.runtime/cstdlib.pass.cpp | 6 ++---- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/test/std/depr/depr.c.headers/stdlib_h.pass.cpp b/test/std/depr/depr.c.headers/stdlib_h.pass.cpp index 07ffa0b75..cc566d069 100644 --- a/test/std/depr/depr.c.headers/stdlib_h.pass.cpp +++ b/test/std/depr/depr.c.headers/stdlib_h.pass.cpp @@ -87,10 +87,8 @@ int main() 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) +#if TEST_STD_VER > 14 && defined(TEST_HAS_C11_FEATURES) && !defined(_WIN32) static_assert((std::is_same::value), ""); -#endif #endif static_assert((std::is_same::value), ""); diff --git a/test/std/language.support/support.runtime/cstdlib.pass.cpp b/test/std/language.support/support.runtime/cstdlib.pass.cpp index e9dda6cee..02c8c9fd8 100644 --- a/test/std/language.support/support.runtime/cstdlib.pass.cpp +++ b/test/std/language.support/support.runtime/cstdlib.pass.cpp @@ -75,10 +75,8 @@ int main() 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 +#if TEST_STD_VER > 14 && defined(TEST_HAS_C11_FEATURES) && !defined(_WIN32) + static_assert((std::is_same::value), ""); #endif static_assert((std::is_same::value), "");