(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
cpp2a/
spaceship-fallback1.C
// 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;
}