Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.old-deja / g++.mike / align2.C
blobef39bb1ac71bd947ec7de31e6672df73c7eea820
1 // { dg-do run  }
2 class Foo {
3 };
5 class Bar : virtual Foo {
6 public:
7   int b;
8 } x;
10 int main()
12   // printf("Foo offset %d\n", (int)(Foo*)&x - (int)&x);
13   // printf("b offset %d\n", (int)&x.b - (int)&x);
14   // printf("sizeof is %d\n", sizeof(Bar));
15   // This core dumps on a SPARC is alignment is wrong.
16   Bar blist[10];