diff --git a/libcxx/test/std/concepts/concepts.compare/concept.equalitycomparable/equality_comparable.compile.pass.cpp b/libcxx/test/std/concepts/concepts.compare/concept.equalitycomparable/equality_comparable.compile.pass.cpp --- a/libcxx/test/std/concepts/concepts.compare/concept.equalitycomparable/equality_comparable.compile.pass.cpp +++ b/libcxx/test/std/concepts/concepts.compare/concept.equalitycomparable/equality_comparable.compile.pass.cpp @@ -31,6 +31,7 @@ #endif #include "compare_types.h" +#include "test_macros.h" namespace fundamentals { static_assert(std::equality_comparable); @@ -96,12 +97,12 @@ static_assert(!std::equality_comparable >); static_assert(std::equality_comparable >); static_assert(!std::equality_comparable); -static_assert( +LIBCPP_STATIC_ASSERT( !std::equality_comparable > >); -static_assert(!std::equality_comparable >); +LIBCPP_STATIC_ASSERT(!std::equality_comparable >); #endif -static_assert(std::equality_comparable >); +LIBCPP_STATIC_ASSERT(std::equality_comparable >); static_assert(std::equality_comparable >); static_assert(std::equality_comparable >); static_assert(std::equality_comparable >); diff --git a/libcxx/test/std/concepts/concepts.compare/concepts.totallyordered/totally_ordered.pass.cpp b/libcxx/test/std/concepts/concepts.compare/concepts.totallyordered/totally_ordered.pass.cpp --- a/libcxx/test/std/concepts/concepts.compare/concepts.totallyordered/totally_ordered.pass.cpp +++ b/libcxx/test/std/concepts/concepts.compare/concepts.totallyordered/totally_ordered.pass.cpp @@ -112,14 +112,18 @@ static_assert(!std::totally_ordered >); struct A {}; -// FIXME(cjdb): uncomment when operator<=> is implemented for each of these types. -// static_assert(!std::totally_ordered >); -// static_assert(!std::totally_ordered >); -// static_assert(!std::totally_ordered >); -// static_assert(!std::totally_ordered >); -static_assert(!std::totally_ordered >); -// static_assert(!std::totally_ordered >); -// static_assert(!std::totally_ordered >); +// FIXME(cjdb): Enable when operator<=> is implemented for each of these types. +#ifndef _LIBCPP_VERSION +static_assert(!std::totally_ordered >); +static_assert(!std::totally_ordered >); +static_assert(!std::totally_ordered >); +static_assert(!std::totally_ordered >); +#endif // _LIBCPP_VERSION +LIBCPP_STATIC_ASSERT(!std::totally_ordered >); +#ifndef _LIBCPP_VERSION +static_assert(!std::totally_ordered >); +static_assert(!std::totally_ordered >); +#endif // _LIBCPP_VERSION } // namespace standard_types namespace types_fit_for_purpose {