921e5a0eb4
From-SVN: r14840
13 lines
177 B
C
13 lines
177 B
C
#include <typeinfo>
|
|
|
|
class A {
|
|
public:
|
|
virtual void j () {}
|
|
};
|
|
|
|
class B : public A { };
|
|
|
|
void x (A& a) {
|
|
const B& b1 = dynamic_cast<B&>((const A&)a); // ERROR - opps
|
|
}
|