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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [strct-pack-2.c] - Blame information for rev 774

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

Line No. Rev Author Line
1 688 jeremybenn
typedef struct
2
{
3
  short a __attribute__ ((aligned (2),packed));
4
  short *ap[2]  __attribute__ ((aligned (2),packed));
5
} A;
6
 
7
main ()
8
{
9
  short i, j = 1;
10
  A a, *ap = &a;
11
  ap->ap[j] = &i;
12
  exit (0);
13
}

powered by: WebSVN 2.1.0

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