(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
cpp2a/
spaceship-eq10.C
// PR c++/95844
// { dg-do compile { target c++20 } }

#include <compare>

struct F {
  [[deprecated("oh no")]] std::strong_ordering operator<=>(const F&) const = default; // { dg-message "" }
};
void use_f(F f) {
  void(f == f);			// { dg-warning "deprecated" }
}