2 // { dg-do compile { target c++20 } }
8 auto operator<=>(const X&) const noexcept(B) = default;
9 bool operator==(const X&) const noexcept(!B) = default;
13 static_assert(noexcept(x_t <=> x_t));
14 static_assert(noexcept(x_t < x_t));
15 static_assert(!noexcept(x_t == x_t));
16 static_assert(!noexcept(x_t != x_t));
19 static_assert(!noexcept(x_f <=> x_f));
20 static_assert(!noexcept(x_f < x_f));
21 static_assert(noexcept(x_f == x_f));
22 static_assert(noexcept(x_f != x_f));