(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
cpp2a/
spaceship-union1.C
// P2002: Allow default comparison of unions with no members.
// { dg-do compile { target c++20 } }

union A
{
  bool operator==(const A&) const = default;
};

int main()
{
  A() == A();
}