(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
cpp2a/
spaceship-eq7.C
// { dg-do compile { target c++20 } }

union A
{
  int i;
  bool operator==(const A&) const = default; // { dg-message "union" }
};

A a { 42 };
bool b = a == a;		// { dg-error "deleted" }