10 B (int aa
, int bb
): A (aa
), b(bb
) {}
23 struct Derived
: public Alpha
27 struct VirtuallyDerived
: public virtual Alpha
31 struct DoublyDerived
: public VirtuallyDerived
,
38 main (int argc
, char **argv
)
40 A
*a
= new B(42, 1729);
46 DoublyDerived doublyderived
;
49 Alpha
*add
= &doublyderived
;
51 return 0; /* breakpoint spot: casts.exp: 1 */