OSDN Git Service

PR testsuite/52641
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.c-torture / compile / pr36154.c
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)
8 {
9   return memcmp(p, pkt_unaligned.packet, 1);
10 }
11