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