blob: dd98502c3a5c0d1489ffc088bdbb7dedc9ea6c86 [file] [log] [blame]
// Build don't link:
// 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) { // ERROR - undeclared method
x = t;
}