2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / torture / pr36191.C
blob175707d1baf3c922753ff0b19eaadc9b929ffda6
1 // PR c++/36191
2 // { dg-do compile }
3 // { dg-options "-fnon-call-exceptions" }
4 // { dg-skip-if "Frame pointer required for unwind tables" { m68k*-*-* fido*-*-* } "-fomit-frame-pointer" "" }
6 __complex__ double
7 foo (__complex__ double x, double y)
9   try
10     {
11       return x / y;
12     }
13   catch (char *s)
14     {
15       return x;
16     }