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
/
empty10.C
blob
970afbaf5127916a4570d05c080c941069a62698
1
// { dg-do run { target i?86-*-* } }
2
// { dg-options "-fabi-version=0 -w" }
3
4
struct E {};
5
struct E2 : public E {};
6
7
struct A {
8
int i;
9
};
10
11
struct B {
12
int j;
13
};
14
15
struct C :
16
public E,
17
public A,
18
public E2,
19
virtual public B {
20
};
21
22
C c;
23
24
int main () {
25
if (((char*)(B*)&c - (char*)&c) != 8)
26
return 1;
27
}