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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [pr40432.c] - Rev 688

Compare with Previous | Blame | View Log

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

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.