diff options
| author | Hans Wennborg <hans@hanshq.net> | 2018-08-17 07:19:32 +0000 |
|---|---|---|
| committer | Hans Wennborg <hans@hanshq.net> | 2018-08-17 07:19:32 +0000 |
| commit | 719997b080f41948e51cef0491669abd3ff12d3d (patch) | |
| tree | bdea65d89ca2419b763f1c0139e9300f9ed45cea | |
| parent | ea525abfcbeb57273ca63302fc51dc7846c8789d (diff) | |
| download | bcm5719-llvm-719997b080f41948e51cef0491669abd3ff12d3d.tar.gz bcm5719-llvm-719997b080f41948e51cef0491669abd3ff12d3d.zip | |
Merging r339675:
------------------------------------------------------------------------
r339675 | ldionne | 2018-08-14 15:29:17 +0200 (Tue, 14 Aug 2018) | 15 lines
[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
------------------------------------------------------------------------
llvm-svn: 339987
3 files changed, 7 insertions, 0 deletions
diff --git a/libcxx/test/libcxx/language.support/has_c11_features.pass.cpp b/libcxx/test/libcxx/language.support/has_c11_features.pass.cpp index cdccc00e21b..4edec534eb9 100644 --- a/libcxx/test/libcxx/language.support/has_c11_features.pass.cpp +++ b/libcxx/test/libcxx/language.support/has_c11_features.pass.cpp @@ -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" 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 3001c215cd1..84f249fa51f 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 @@ -11,6 +11,8 @@ #include <float.h> +#include "test_macros.h" + #ifndef FLT_ROUNDS #error FLT_ROUNDS 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 6e399d0934b..5313ad37f73 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 @@ -11,6 +11,8 @@ #include <cfloat> +#include "test_macros.h" + #ifndef FLT_ROUNDS #error FLT_ROUNDS not defined #endif |

