From: Louis Dionne Date: Wed, 29 Jul 2020 18:24:02 +0000 (-0400) Subject: [libc++] Re-enable tests for C11 math macros in and X-Git-Tag: llvmorg-13-init~16375 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a5faf3c849298d1106e74068f3ecffa13e1684a6;p=platform%2Fupstream%2Fllvm.git [libc++] Re-enable tests for C11 math macros in and Fixes http://llvm.org/PR38572. --- diff --git a/libcxx/test/std/depr/depr.c.headers/float_h.pass.cpp b/libcxx/test/std/depr/depr.c.headers/float_h.pass.cpp index 1069a67..2b7edca 100644 --- a/libcxx/test/std/depr/depr.c.headers/float_h.pass.cpp +++ b/libcxx/test/std/depr/depr.c.headers/float_h.pass.cpp @@ -24,7 +24,7 @@ #error FLT_RADIX not defined #endif -#if TEST_STD_VER > 14 && 0 +#if TEST_STD_VER > 14 #ifndef FLT_HAS_SUBNORM #error FLT_HAS_SUBNORM not defined #endif @@ -54,7 +54,7 @@ #error DECIMAL_DIG not defined #endif -#if TEST_STD_VER > 14 && 0 +#if TEST_STD_VER > 14 #ifndef FLT_DECIMAL_DIG #error FLT_DECIMAL_DIG not defined #endif @@ -164,7 +164,7 @@ #error LDBL_MIN not defined #endif -#if TEST_STD_VER > 14 && 0 +#if TEST_STD_VER > 14 #ifndef FLT_TRUE_MIN #error FLT_TRUE_MIN not defined #endif diff --git a/libcxx/test/std/language.support/support.limits/c.limits/cfloat.pass.cpp b/libcxx/test/std/language.support/support.limits/c.limits/cfloat.pass.cpp index 6ddd8c6..99fe6a3 100644 --- a/libcxx/test/std/language.support/support.limits/c.limits/cfloat.pass.cpp +++ b/libcxx/test/std/language.support/support.limits/c.limits/cfloat.pass.cpp @@ -24,7 +24,7 @@ #error FLT_RADIX not defined #endif -#if TEST_STD_VER > 14 && 0 +#if TEST_STD_VER > 14 #ifndef FLT_HAS_SUBNORM #error FLT_HAS_SUBNORM not defined #endif @@ -54,7 +54,7 @@ #error DECIMAL_DIG not defined #endif -#if TEST_STD_VER > 14 && 0 +#if TEST_STD_VER > 14 #ifndef FLT_DECIMAL_DIG #error FLT_DECIMAL_DIG not defined #endif @@ -164,7 +164,7 @@ #error LDBL_MIN not defined #endif -#if TEST_STD_VER > 14 && 0 +#if TEST_STD_VER > 14 #ifndef FLT_TRUE_MIN #error FLT_TRUE_MIN not defined #endif diff --git a/libcxx/test/support/test_macros.h b/libcxx/test/support/test_macros.h index 6fe1c56..0087360 100644 --- a/libcxx/test/support/test_macros.h +++ b/libcxx/test/support/test_macros.h @@ -162,7 +162,6 @@ #endif // Sniff out to see if the underlying C library has C11 features -// Note that at this time (July 2018), MacOS X and iOS do NOT. // This is cribbed from __config; but lives here as well because we can't assume libc++ #if __ISO_C_VISIBLE >= 2011 || TEST_STD_VER >= 11 # if defined(__FreeBSD__)