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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [opt/] [pr26179.C] - Blame information for rev 693

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
/* The problem here is that Load PRE on the tree level
2
   forgot to handle RETURN_DECL which causes us to ICE. */
3
 
4
// { dg-do compile }
5
// { dg-options "-O2" }
6
 
7
struct a
8
{
9
  int i;
10
};
11
void h(struct a&);
12
void l(void);
13
 
14
struct a g(void)
15
{
16
  struct a fl;
17
  h(fl);
18
  if (fl.i)
19
    l();
20
  fl.i+=2;
21
  return fl;
22
}

powered by: WebSVN 2.1.0

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