c++: P0847R7 (deducing this) - xobj lambdas. [PR102609]
[official-gcc.git] / gcc / testsuite / g++.dg / cpp2a / spaceship-eq7.C
blobb1351886176b3e35c869ff3efad4a3d78d60f793
1 // { dg-do compile { target c++20 } }
3 union A
5   int i;
6   bool operator==(const A&) const = default; // { dg-message "union" }
7 };
9 A a { 42 };
10 bool b = a == a;                // { dg-error "deleted" }