aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp2a/spaceship-eq10.C
blob: 93f5e253af4babac09d635ebb14007a6af119ef4 (plain)
1
2
3
4
5
6
7
8
9
10
11
// 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" }
}