(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
init/
ref3.C
struct Base { };
struct Derived : public Base { };
struct Choose {
  operator Base&();
  operator Derived&();
};

void f()
{
  Choose c;
  Base& ref = c;
}