1 2 3 4 5 6 7 8 9 10 11 12
typedef struct s { unsigned short a; unsigned long b __attribute__ ((packed)); } s; s t; int main() { t.b = 0; return 0; }