aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp2a/spaceship-eq16.C
blob: e5538ea989019535207db88d3b725f8c48445ac8 (plain)
1
2
3
4
5
6
7
8
9
10
11
// PR c++/110084
// { dg-do compile { target c++20 } }

template <class T>
class BadTuple {
  constexpr bool operator==(const BadTuple&) const;
};
template<class T>
constexpr bool BadTuple<T>::operator==(const BadTuple<T>&) const = default;

BadTuple<int> a;