1/* { dg-do compile } */
2/* { dg-options "-O2" } */
3/* FRE testcase for PR 24231, problem with PRE coalescing abnormal phis.  */
4struct f
5{
6  int i;
7};
8struct h{h();};
9int g(void);
10int g1(void) throw();
11int h2222(f*);
12void ghh(int);
13
14int 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    { t.i = i;
29      i = g();
30    }catch(...)
31   {}
32    i = 2;
33    int h = t.i;
34    ghh (h);
35
36    g();
37  }catch(...)
38  {}
39  return i;
40}
41
42
43