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
2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.mike
/
dyncast9.C
blob
f2b9990197a38f82531bd90290e0454b805af64e
1
// { dg-do run }
2
class S1 { int i; };
3
class S2 { int i; };
4
class VB {
5
public:
6
virtual void foo() { }
7
};
8
9
class D : public S1, virtual public VB {
10
} d;
11
12
class E : public S2, public D {
13
} e;
14
15
int main() {
16
return (char *)&e - (char *)dynamic_cast<E*>((D*)&e);
17
}