repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
s390: Fix TF to FPRX2 conversion [PR115860]
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
dcast1.C
blob
9336cba116331740bc3ca75a3161bdbe8ef50384
1
// { dg-do assemble }
2
// PRMS Id: 7162
3
4
struct B {
5
int i;
6
B() : i(1) {}
7
};
8
9
struct D : B {
10
int i;
11
D() : i(2) {}
12
};
13
14
void ch()
15
{
16
D od2;
17
D &rd2 = od2;
18
19
B &rd1 = dynamic_cast<B&>(rd2);
20
}