Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / consistency.vlad / layout / c-long-2-c-longlong.cpp
blob55cfbdc8c2243043c311c1b12dfe900bc2962a65
1 #include <stdio.h>
3 class c{
4 public:
5 long f;
6 };
8 class c2{
9 public:
10 long long f2;
14 static class sss: public c, public c2{
15 public:
16 long m;
17 } sss;
19 #define _offsetof(st,f) ((char *)&((st *) 16)->f - (char *) 16)
21 int main (void) {
22 printf ("++Class with long inhereting classes with long & longlong:\n");
23 printf ("size=%d,align=%d\n", sizeof (sss), __alignof__ (sss));
24 printf ("offset-f=%d,offset-f2=%d,offset-m=%d,\nalign-f=%d,align-f2=%d,align-m=%d\n",
25 _offsetof (class sss, f), _offsetof (class sss, f2), _offsetof (class sss, m),
26 __alignof__ (sss.f), __alignof__ (sss.f2), __alignof__ (sss.m));
27 return 0;