rt_gccstream/gcc/testsuite/gcc.c-torture/compile/pr36154.c

12 lines
263 B
C

struct eth_test_pkt {
unsigned short len;
unsigned short ctr;
unsigned char packet[];
} __attribute__ ((packed));
struct eth_test_pkt pkt_unaligned = { .packet = { 0xFC } };
int cmd_unaligned(const void *p)
{
return memcmp(p, pkt_unaligned.packet, 1);
}