(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
inherit/
virtual3.C
//PR c++/29022

struct A
{
  operator int();
};

struct B : virtual A;	// { dg-error "token" }

int foo(B &b)
{
  return b;		// { dg-error "cannot convert" }
}