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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [20060419-1.c] - Diff between revs 154 and 816

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

Rev 154 Rev 816
/* This failed because if conversion didn't handle insv patterns properly.  */
/* This failed because if conversion didn't handle insv patterns properly.  */
 
 
union y
union y
{
{
  int a;
  int a;
  unsigned short b;
  unsigned short b;
};
};
 
 
extern void bar (unsigned short u, union y v);
extern void bar (unsigned short u, union y v);
 
 
void
void
foo (int check)
foo (int check)
{
{
  union y x;
  union y x;
 
 
  if (check != 0)
  if (check != 0)
    x.b = 1;
    x.b = 1;
  else
  else
    x.b = 2;
    x.b = 2;
  bar (x.b, x);
  bar (x.b, x);
}
}
 
 

powered by: WebSVN 2.1.0

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