aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/eh/pr45569.C
blob: 2c100d2b9bf1c5ce0bb8e31a84b584af01c358c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// { dg-do compile }
// { dg-options "-O -fnon-call-exceptions" }

float f ();
_Complex float g ();

void
i (_Complex float);

float j ()
{
  _Complex float x = 0;
  try
    {
      x = f ();
    }
  catch ( ...)
    {
      x += g ();
    }
  i (x);
}