Commit 60049c8d by Alexandre Oliva Committed by Alexandre Oliva

* g++.old-deja/g++.other/dcast2.C: cannot dynamic downcast &x

From-SVN: r23429
parent 124e5732
1998-10-29 Alexandre Oliva <oliva@dcc.unicamp.br>
* g++.old-deja/g++.other/dcast2.C: cannot dynamic downcast &x
* g++.old-deja/g++.other/init9.C: test cross initialization of
non-POD types
......
// Build don't link:
// Based on a testcase by Ruslan Shevchenko <Ruslan@Shevchenko.Kiev.UA>
struct B {
virtual ~B();
};
struct D : public B {
};
void foo() {
B x;
dynamic_cast<D*>(&x); // gets bogus error - XFAIL *-*-*
B* p = &x;
dynamic_cast<D*>(p);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment