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

struct A			// { dg-message "operator=|no known conversion" }
{
  virtual A foo ();
};

void bar (A& a)
{
  a.foo () = 0; // { dg-error "operand types are 'A' and 'int'" }
}