doc: Remove link to www.amelek.gda.pl/avr/
[official-gcc.git] / gcc / testsuite / g++.dg / cpp2a / spaceship-eq4.C
blob66b228d07afda6dbd9e3db9095380bc86ce34b20
1 // { dg-do compile { target c++20 } }
3 struct A {
4   int operator==(const A&) const = default; // { dg-error "return .bool" }
5   bool operator==(const A&, const A&) const = default; // { dg-error "exactly one" }
6   bool operator==(int) const = default; // { dg-error "parameter type" }
7   bool operator==(const A&) = default; // { dg-error "const" }
8 };