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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [pr40432.c] - Diff between revs 297 and 338

Only display areas with differences | Details | Blame | View Log

Rev 297 Rev 338
/* Test that SRA produces valid gimple when handling both type punning by means
/* Test that SRA produces valid gimple when handling both type punning by means
   of VCE and creating an access to a union.  */
   of VCE and creating an access to a union.  */
 
 
union U {
union U {
  struct something *sth;
  struct something *sth;
  void *nothing;
  void *nothing;
};
};
 
 
void
void
foo (union U *target, void *p)
foo (union U *target, void *p)
{
{
  union U u;
  union U u;
 
 
  u.nothing = p;
  u.nothing = p;
  *target = u;
  *target = u;
  return;
  return;
}
}
 
 

powered by: WebSVN 2.1.0

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