1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
short x1 = 17; struct { short i __attribute__ ((packed)); } t; f () { t.i = x1; if (t.i != 17) abort (); } main () { f (); exit (0); }