2 typedef typeof(sizeof(char)) Size_t
;
4 #define bufsize ((1L << (8 * sizeof(Size_t) - 2))-256)
21 unsigned long union_size()
23 return sizeof(union huge_union
);
26 unsigned long struct_size()
28 return sizeof(struct huge_struct
);
31 unsigned long struct_a_offset()
33 return (unsigned long)(&((struct huge_struct
*) 0)->a
);
38 /* Check the exact sizeof value. bufsize is aligned on 256b. */
39 if (union_size() != sizeof(char) * bufsize
)
42 if (struct_size() != sizeof(short) * bufsize
+ 4*sizeof(int))
45 if (struct_a_offset() < sizeof(short) * bufsize
)