(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
other/
operator1.C
// PR c++/27547
// { dg-do compile }

int operator=(int);  // { dg-error "5:.int operator=\\(int\\). must be a non-static member function" }

void foo()
{
  operator=(0);  // { dg-error "not defined" }
}