Debian Codegraph @

gcc/testsuite/g++.dg/cpp2a/spaceship-eq10.C

raw
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 }