12 B (int aa
, int bb
): A (aa
), b(bb
) {}
25 struct Derived
: public Alpha
29 struct VirtuallyDerived
: public virtual Alpha
33 struct DoublyDerived
: public VirtuallyDerived
,
49 struct LeftRight
: public Left
, public Right
54 main (int argc
, char **argv
)
56 A
*a
= new B(42, 1729);
62 DoublyDerived doublyderived
;
65 Alpha
*add
= &doublyderived
;
70 unsigned long long gd_value
= (unsigned long long) (std::uintptr_t)&gd
;
71 unsigned long long r_value
= (unsigned long long) (Right
*) &gd
;
73 return 0; /* breakpoint spot: casts.exp: 1 */