#include
class c{
public:
long f;
};
static class sss: public c{
public:
char m;
} sss;
#define _offsetof(st,f) ((char *)&((st *) 16)->f - (char *) 16)
int main (void) {
printf ("
#include
class c{
public:
char f;
};
class c2{
public:
long long f2;
};
static class sss: public c, public c2{
public:
char m;
} sss;
#define _offsetof(st,f) ((char *)&((st *) 16)
#include
class c{
public:
long f;
};
class c2{
public:
char f2;
};
static class sss: public c, public c2{
public:
long m;
} sss;
#define _offsetof(st,f) ((char *)&((st *) 16)->f -
#include
class c{
public:
char f;
};
class c2{
public:
long double f2;
};
static class sss: public c, public c2{
public:
char m;
} sss;
#define _offsetof(st,f) ((char *)&((st *) 1