summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/torture/pr31081-1.C
blob: cb11b2148d4ebe6c0eaec5cc3d1fd6d82f74224d (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 } */

static int get_record (void);
void f(void);
int g(void);
static int get_record (void)
{
  int     result;
  try
  {
    result = g();
    f();
  }
  catch (const int &)   { }
  return result;
}
int NAV_get_record ( )
{
  int     result;
  for (;;)
    if (get_record ())
      return 1;
}