Debian Codegraph @

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

raw
1 /* { dg-additional-options "-fpermissive" } */
2 struct eth_test_pkt {
3 unsigned short len;
4 unsigned short ctr;
5 unsigned char packet[];
6 } __attribute__ ((packed));
7 struct eth_test_pkt pkt_unaligned = { .packet = { 0xFC } };
8 int cmd_unaligned(const void *p)
9 {
10 return memcmp(p, pkt_unaligned.packet, 1);
11 }
12