struct A { virtual int foo(); }; int A::foo() { return 1; }