blob: 93f5e253af4babac09d635ebb14007a6af119ef4 [file] [log] [blame]
// 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" }
}