* Merge from mainline (tree-profiling-merge-20050603)
[official-gcc.git] / gcc / testsuite / g++.dg / abi / empty10.C
blobae992944dee842a2a6914aa547a042148bacc868
1 // { dg-do run { target i?86-*-* x86_64-*-* } }
2 // { dg-require-effective-target ilp32 }
3 // { dg-options "-fabi-version=0 -w" }
5 struct E {};
6 struct E2 : public E {};
8 struct A {
9   int i;
12 struct B {
13   int j;
16 struct C :
17   public E, 
18   public A, 
19   public E2, 
20   virtual public B {
23 C c;
25 int main () {
26   if (((char*)(B*)&c - (char*)&c) != 8)
27     return 1;