[libcxx] r339675 - [libc++] Add missing #include in C11 features tests
Louis Dionne via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 14 06:29:18 PDT 2018
Author: ldionne
Date: Tue Aug 14 06:29:17 2018
New Revision: 339675
URL: http://llvm.org/viewvc/llvm-project?rev=339675&view=rev
Log:
[libc++] Add missing #include in C11 features tests
Summary:
These #includes are quite important, since otherwise any
#if TEST_STD_VER > 14 && defined(TEST_HAS_C11_FEATURES)
checks are always false, and so we don't actually test for C11 support
in the standard library.
Reviewers: mclow.lists, EricWF
Subscribers: christof, dexonsmith, cfe-commits
Differential Revision: https://reviews.llvm.org/D50674
Modified:
libcxx/trunk/test/libcxx/language.support/has_c11_features.pass.cpp
libcxx/trunk/test/std/depr/depr.c.headers/float_h.pass.cpp
libcxx/trunk/test/std/language.support/support.limits/c.limits/cfloat.pass.cpp
Modified: libcxx/trunk/test/libcxx/language.support/has_c11_features.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/libcxx/language.support/has_c11_features.pass.cpp?rev=339675&r1=339674&r2=339675&view=diff
==============================================================================
--- libcxx/trunk/test/libcxx/language.support/has_c11_features.pass.cpp (original)
+++ libcxx/trunk/test/libcxx/language.support/has_c11_features.pass.cpp Tue Aug 14 06:29:17 2018
@@ -14,6 +14,9 @@
// _LIBCPP_HAS_C11_FEATURES - which is defined in <__config>
// They should always be the same
+#include <__config>
+#include "test_macros.h"
+
#ifdef TEST_HAS_C11_FEATURES
# ifndef _LIBCPP_HAS_C11_FEATURES
# error "TEST_HAS_C11_FEATURES is defined, but _LIBCPP_HAS_C11_FEATURES is not"
Modified: libcxx/trunk/test/std/depr/depr.c.headers/float_h.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/depr/depr.c.headers/float_h.pass.cpp?rev=339675&r1=339674&r2=339675&view=diff
==============================================================================
--- libcxx/trunk/test/std/depr/depr.c.headers/float_h.pass.cpp (original)
+++ libcxx/trunk/test/std/depr/depr.c.headers/float_h.pass.cpp Tue Aug 14 06:29:17 2018
@@ -11,6 +11,8 @@
#include <float.h>
+#include "test_macros.h"
+
#ifndef FLT_ROUNDS
#error FLT_ROUNDS not defined
#endif
Modified: libcxx/trunk/test/std/language.support/support.limits/c.limits/cfloat.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/language.support/support.limits/c.limits/cfloat.pass.cpp?rev=339675&r1=339674&r2=339675&view=diff
==============================================================================
--- libcxx/trunk/test/std/language.support/support.limits/c.limits/cfloat.pass.cpp (original)
+++ libcxx/trunk/test/std/language.support/support.limits/c.limits/cfloat.pass.cpp Tue Aug 14 06:29:17 2018
@@ -11,6 +11,8 @@
#include <cfloat>
+#include "test_macros.h"
+
#ifndef FLT_ROUNDS
#error FLT_ROUNDS not defined
#endif
More information about the cfe-commits
mailing list