2 // Author: Alfred Miniarik <a8601248@unet.univie.ac.at>
4 // Even in a derived class, a private base cannot be dynamically downcasted
7 extern "C" void abort();
13 struct B : private A {
16 return dynamic_cast<B*> (objp);
25 if (dynamic_cast <B*> (aptr)) abort ();
26 if (b.a2b (aptr)) abort();