(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.old-deja/
g++.other/
crash21.C
// { dg-do assemble  }
// Origin: Gabriel Dos Reis <gdr@codesourcery.com>

struct  A {
  virtual void f(int&) const;
};

struct B : public A {
  int x;
};

void B::f(int& t) { // { dg-error "" } undeclared method
  x = t;
}