summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCasey Carter <Casey@Carter.net>2019-10-13 16:46:12 +0000
committerCasey Carter <Casey@Carter.net>2019-10-13 16:46:12 +0000
commit6dc4120468828fae479ef39fd231ebe2d5415a78 (patch)
treed52eb5674aadbc8119acb6aa5c1f4d17ba2fc9b3
parent1f4cad9f28b77d3daf73d03c0c261d21bde7ea43 (diff)
[libc++][test] <=> now has a feature-test macro
...which `test/support/test_macros.h` can use to detect compiler support. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@374722 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/support/test_macros.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/support/test_macros.h b/test/support/test_macros.h
index 330d684e3..808f2b5ff 100644
--- a/test/support/test_macros.h
+++ b/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