OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [g++.dg/] [tree-ssa/] [pr24231-2.C] - Blame information for rev 384

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 301 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O2" } */
3
/* FRE testcase for PR 24231, problem with PRE coalescing abnormal phis.  */
4
struct f
5
{
6
  int i;
7
};
8
struct h{h();};
9
int g(void);
10
int g1(void) throw();
11
int h2222(f*);
12
void ghh(int);
13
 
14
int main(void)
15
{
16
  int i;
17
  f t;
18
  try
19
  {
20
    i = g1();
21
    try
22
    {
23
      i = g();
24
    }catch(...)
25
    {}
26
    int j = i;
27
    try
28
    {
29
      i = g();
30
    }catch(...)
31
    {}
32
    t.i = j;
33
    i = 2;
34
    int h = t.i;
35
    ghh (h);
36
 
37
    g();
38
  }catch(...)
39
  {}
40
  return i;
41
}

powered by: WebSVN 2.1.0

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