| 1 |
// PR c++/95844 |
| 2 |
// { dg-do compile { target c++20 } } |
| 3 |
|
| 4 |
#include <compare> |
| 5 |
|
| 6 |
struct F { |
| 7 |
[[deprecated("oh no")]] std::strong_ordering operator<=>(const F&) const = default; // { dg-message "" } |
| 8 |
}; |
| 9 |
void use_f(F f) { |
| 10 |
void(f == f); // { dg-warning "deprecated" } |
| 11 |
} |