1*89cd0e8cSMichael Buch #include <compare> 2*89cd0e8cSMichael Buch 3*89cd0e8cSMichael Buch struct Foo { operator <=>(Foo const &,Foo const &)4*89cd0e8cSMichael Buch friend auto operator<=>(Foo const &, Foo const &) { return true; } 5*89cd0e8cSMichael Buch }; 6*89cd0e8cSMichael Buch main()7*89cd0e8cSMichael Buchint main() { return Foo{} <=> Foo{}; } 8