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
FSF GCC merge 02/23/03
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
abi
/
vbase12.C
blob
98b9054f05e00ad77e407097d8d2a774661219e6
1
// { dg-do run }
2
// { dg-options "-fabi-version=0" }
3
4
struct A {};
5
struct B { A a; virtual void f () {} };
6
struct C : public B, virtual public A {};
7
struct D : public C, virtual public A {};
8
9
D d;
10
11
int main () {
12
if (((char*)(A*)&d - (char*)&d) != 0)
13
return 1;
14
}