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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [pr51583.c] - Rev 749

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

/* { dg-do compile } */
/* { dg-options "-O1" } */
 
typedef __complex__ double Value;
 
union U
{
  Value v;
  char c[sizeof(Value)];
};
 
struct S
{
  union U u;
  int i,j;
};
 
Value gv;
int gi, gj;
 
Value foo (void)
{
  struct S s,t;
 
  t.i = gi;
  t.j = gj;
  t.u.v = gv;
  t.u.c[0] = 0;
 
  s = t;
  __imag__ s.u.v += s.i;
 
  return s.u.v;
}
 

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.