(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
diagnostic/
pr77777.C
// PR c++/77777
// { dg-do compile }

struct X {
  int f();
};

void g(int);

int main()
{
  X x;
  g(
      x.f  // { dg-error "invalid use of non-static member function" }
   );
}