blob: 175707d1baf3c922753ff0b19eaadc9b929ffda6 [file] [log] [blame]
Jakub Jelinek04be6ff2008-12-29 19:25:19 +01001// PR c++/36191
2// { dg-do compile }
3// { dg-options "-fnon-call-exceptions" }
Christian Bruel7a296492010-04-16 10:04:05 +02004// { dg-skip-if "Frame pointer required for unwind tables" { m68k*-*-* fido*-*-* } "-fomit-frame-pointer" "" }
Jakub Jelinek04be6ff2008-12-29 19:25:19 +01005
6__complex__ double
7foo (__complex__ double x, double y)
8{
9 try
10 {
11 return x / y;
12 }
13 catch (char *s)
14 {
15 return x;
16 }
17}