summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/torture/pr36191.C
blob: 175707d1baf3c922753ff0b19eaadc9b929ffda6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// PR c++/36191
// { dg-do compile }
// { dg-options "-fnon-call-exceptions" }
// { dg-skip-if "Frame pointer required for unwind tables" { m68k*-*-* fido*-*-* } "-fomit-frame-pointer" "" }

__complex__ double
foo (__complex__ double x, double y)
{
  try
    {
      return x / y;
    }
  catch (char *s)
    {
      return x;
    }
}