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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [align-nest.c] - Rev 849

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

 
void foo(int n)
{
  typedef struct
  {
    int value;
  } myint;
 
  struct S
  {
    int i[n];
    unsigned int b:1;
    myint mi;
  } __attribute__ ((packed)) __attribute__ ((aligned (4)));
 
  struct S s[2];
  int k;
 
  for (k = 0; k < 2; k ++)
    s[k].mi.value = 0;
}
 
int main ()
{
  foo (2);
  return 0;
}
 
 

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

powered by: WebSVN 2.1.0

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