1272343Sngie/* packed tests */ 2272343Sngie 3272343Sngiestruct in_addr { 4272343Sngie int x; 5272343Sngie}; 6272343Sngiestruct ip_timestamp { 7272343Sngie char ipt_code; 8272343Sngie char ipt_len; 9272343Sngie char ipt_ptr; 10272343Sngie unsigned int ipt_flg:4, 11272343Sngie ipt_oflw:4; 12272343Sngie union ipt_timestamp { 13272343Sngie int ipt_time[1]; 14272343Sngie struct ipt_ta { 15272343Sngie struct in_addr ipt_addr; 16272343Sngie int ipt_time; 17272343Sngie } ipt_ta[1] __packed; 18272343Sngie } ipt_timestamp __packed; 19272343Sngie} __packed; 20272343Sngie 21272343Sngietypedef struct __packed { 22272343Sngie int x; 23272343Sngie} t; 24272343Sngie 25272343Sngiestruct x { 26272343Sngie char c; 27272343Sngie long l; 28272343Sngie} __packed; 29272343Sngie 30272343Sngiestruct y { 31272343Sngie char c; 32272343Sngie long l; 33272343Sngie}; 34272343Sngie 35272343Sngieint a[sizeof(struct y) - sizeof(struct x) - 1]; 36