diff options
author | Casey Carter <Casey@Carter.net> | 2019-10-13 16:46:12 +0000 |
---|---|---|
committer | Casey Carter <Casey@Carter.net> | 2019-10-13 16:46:12 +0000 |
commit | 1f92d8b5449f6fd17360421e2e4da3fb7bff5c5a (patch) | |
tree | 856731c9642c2d769a7c2e66df88c29d9e28f92a /libcxx/test/support/test_macros.h | |
parent | d0b8db9ab8c47286f5cf99702193daa8aec18298 (diff) | |
download | bcm5719-llvm-1f92d8b5449f6fd17360421e2e4da3fb7bff5c5a.tar.gz bcm5719-llvm-1f92d8b5449f6fd17360421e2e4da3fb7bff5c5a.zip |
[libc++][test] <=> now has a feature-test macro
...which `test/support/test_macros.h` can use to detect compiler support.
llvm-svn: 374722
Diffstat (limited to 'libcxx/test/support/test_macros.h')
-rw-r--r-- | libcxx/test/support/test_macros.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libcxx/test/support/test_macros.h b/libcxx/test/support/test_macros.h index 330d684e36b..808f2b5ff93 100644 --- a/libcxx/test/support/test_macros.h +++ b/libcxx/test/support/test_macros.h @@ -223,9 +223,8 @@ #define TEST_SAFE_STATIC #endif -// FIXME: Fix this feature check when either (A) a compiler provides a complete -// implementation, or (b) a feature check macro is specified -#if !defined(_MSC_VER) || defined(__clang__) || _MSC_VER < 1920 || _MSVC_LANG <= 201703L +#if !defined(__cpp_impl_three_way_comparison) \ + && (!defined(_MSC_VER) || defined(__clang__) || _MSC_VER < 1920 || _MSVC_LANG <= 201703L) #define TEST_HAS_NO_SPACESHIP_OPERATOR #endif |