OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* class.c (layout_class_type): Reuse tail padding when laying out
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
abi
/
empty10.C
1
// { dg-do run }
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
}