OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [pr36154.c] - Blame information for rev 801

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 688 jeremybenn
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
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.