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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [20040308-1.c] - Diff between revs 149 and 154

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 149 Rev 154
/* This used to fail on SPARC with an unaligned memory access.  */
/* This used to fail on SPARC with an unaligned memory access.  */
 
 
void foo(int n)
void foo(int n)
{
{
  struct S {
  struct S {
    int i[n];
    int i[n];
    unsigned int b:1;
    unsigned int b:1;
    int i2;
    int i2;
  } __attribute__ ((packed)) __attribute__ ((aligned (4)));
  } __attribute__ ((packed)) __attribute__ ((aligned (4)));
 
 
  struct S s;
  struct S s;
 
 
  s.i2 = 0;
  s.i2 = 0;
}
}
 
 
int main(void)
int main(void)
{
{
  foo(4);
  foo(4);
 
 
  return 0;
  return 0;
}
}
 
 

powered by: WebSVN 2.1.0

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