2008-05-30 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / testsuite / gcc.c-torture / compile / pr36154.c
blobae3eb83fa11f3df89f61b3272396b0db96207bec
1 struct eth_test_pkt {
2 unsigned short len;
3 unsigned short ctr;
4 unsigned char packet[];
5 } __attribute__ ((packed));
6 struct eth_test_pkt pkt_unaligned = { .packet = { 0xFC } };
7 int cmd_unaligned(const void *p)
9 return memcmp(p, pkt_unaligned.packet, 1);