OSDN Git Service

* g++.dg/torture/pr36191.C: Don't run with -fomit-frame-pointer on
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / torture / pr36191.C
1 // PR c++/36191
2 // { dg-do compile }
3 // { dg-options "-fnon-call-exceptions" }
4 // { dg-skip-if "Frame pointer required for unwind tables" { sh*-*-* m68k*-*-* fido*-*-* } "-fomit-frame-pointer" "" }
5
6 __complex__ double
7 foo (__complex__ double x, double y)
8 {
9   try
10     {
11       return x / y;
12     }
13   catch (char *s)
14     {
15       return x;
16     }
17 }