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

struct A
{
  virtual int& foo(); // { dg-message "overridden" }
};

struct B : A
{
  B& foo();           // { dg-error "conflicting return type" }
};