1 2 3 4 5 6 7 8
struct X { char s; double c; char s2; }; static_assert(alignof(struct X) == 8); static_assert(sizeof(struct X) == 24);