blob: f4d93c3c068410635fd932210fd7555998d560ae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// PRMS Id: 7162
// Build don't link:
struct B {
int i;
B() : i(1) {}
};
struct D : B {
int i;
D() : i(2) {}
};
void ch()
{
D od2;
D &rd2 = od2;
B &rd1 = dynamic_cast<B&>(rd2);
}
|