blob: 088792b2dd323f0dc327e9da25da55dadc50f182 [file] [log] [blame]
struct Foo {
virtual void X();
virtual void Y();
};
struct Bar: public Foo {
Bar(Foo *);
void Y();
};
void Baz() {
Foo f;
Bar b(&f);
}