c++: P0847R7 (deducing this) - xobj lambdas. [PR102609]
[official-gcc.git] / gcc / testsuite / g++.dg / cpp2a / spaceship-eq8.C
blob61bcde55d1c1e0af54b76758723146a63c100ef9
1 // PR c++/92966
2 // { dg-do compile { target c++20 } }
4 struct S {
5   int operator==(const S&) const = default;     // { dg-error "must return 'bool'" }
6   int s;                                        // { dg-message "declared here" "" { target *-*-* } .-1 }
7 };
8 static_assert(S{} == S{});                      // { dg-error "" }