Jakub Jelinek | 04be6ff | 2008-12-29 19:25:19 +0100 | [diff] [blame] | 1 | // PR c++/36191 |
2 | // { dg-do compile } | ||||
3 | // { dg-options "-fnon-call-exceptions" } | ||||
Christian Bruel | 7a29649 | 2010-04-16 10:04:05 +0200 | [diff] [blame] | 4 | // { dg-skip-if "Frame pointer required for unwind tables" { m68k*-*-* fido*-*-* } "-fomit-frame-pointer" "" } |
Jakub Jelinek | 04be6ff | 2008-12-29 19:25:19 +0100 | [diff] [blame] | 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 | } |