1 2 3 4 5 6 7 8 9 10 11 12 13 14
// { 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; }