summaryrefslogtreecommitdiffstats
path: root/libcxx/test/support/test_macros.h
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2018-04-06 21:37:23 +0000
committerEric Fiselier <eric@efcs.ca>2018-04-06 21:37:23 +0000
commit0913ca197855626c93fdae4184ae80ff5a26503a (patch)
treee7765626e6ab2a71e67babcfefd2ab0ecb7758e1 /libcxx/test/support/test_macros.h
parent66f53d71f7e0ff1c2811ec6741af511c588fd038 (diff)
downloadbcm5719-llvm-0913ca197855626c93fdae4184ae80ff5a26503a.tar.gz
bcm5719-llvm-0913ca197855626c93fdae4184ae80ff5a26503a.zip
Implement P0768r1: Library support for the Spaceship Operator.
this patch adds the <compare> header and implements all of it except for [comp.alg]. As I understand it, the header is needed by the compiler in when implementing the semantics of operator<=>. For that reason I feel it's important to land this header early, despite all compilers lacking support. llvm-svn: 329460
Diffstat (limited to 'libcxx/test/support/test_macros.h')
-rw-r--r--libcxx/test/support/test_macros.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libcxx/test/support/test_macros.h b/libcxx/test/support/test_macros.h
index 848f1407635..5d38bcfc60a 100644
--- a/libcxx/test/support/test_macros.h
+++ b/libcxx/test/support/test_macros.h
@@ -169,6 +169,11 @@
#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
+#define TEST_HAS_NO_SPACESHIP_OPERATOR
+
+
#if TEST_STD_VER < 11
#define ASSERT_NOEXCEPT(...)
#define ASSERT_NOT_NOEXCEPT(...)
OpenPOWER on IntegriCloud