struct A { int x; }; struct B : A { float y; float foo(); };