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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [opt/] [pr26179.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
/* The problem here is that Load PRE on the tree level
/* The problem here is that Load PRE on the tree level
   forgot to handle RETURN_DECL which causes us to ICE. */
   forgot to handle RETURN_DECL which causes us to ICE. */
// { dg-do compile }
// { dg-do compile }
// { dg-options "-O2" }
// { dg-options "-O2" }
struct a
struct a
{
{
  int i;
  int i;
};
};
void h(struct a&);
void h(struct a&);
void l(void);
void l(void);
struct a g(void)
struct a g(void)
{
{
  struct a fl;
  struct a fl;
  h(fl);
  h(fl);
  if (fl.i)
  if (fl.i)
    l();
    l();
  fl.i+=2;
  fl.i+=2;
  return fl;
  return fl;
}
}
 
 

powered by: WebSVN 2.1.0

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