blob: 5ce49490fe5af39342399deab7851f05217de700 [file] [log] [blame]
// PR c++/100367
// { dg-do compile { target c++20 } }
#include <compare>
struct iter {
bool current;
iter(iter &);
};
constexpr bool operator==(const iter &, const iter &y) {
return y.current;
}
void lexicographical_compare_three_way(iter a) {
(a == a) <=> true;
}