1 // { dg-do compile { target c++2a } }
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" }