aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp2a/spaceship-rewrite1.C
blob: c4030cd2f4d684693c56e2d8ba5889441b2d8b1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// This should continue to work.
// { dg-do compile { target c++20 } }

template<class T>
struct A {
  template<class U>
  bool operator==(const A<U>&);
};

int main()
{
  A<int> a1;
  A<void> a2;
  return a1 == a2;
}