1 /* Test for bogus "variable `x' may be clobbered by longjmp" warnings.
2 Inspired by cse.c:simplify_relational_operation. */
4 /* { dg-do compile } */
5 /* { dg-options "-O -Wclobbered -Wextra -Wall" } */
6 /* { dg-skip-if "" { ! nonlocal_goto } } */
10 extern void set_float_handler (jmp_buf *);
17 compare_float (double a
, double b
) /* { dg-bogus "clobbered" "spurious clobbered warning" } */
26 set_float_handler (0);
30 set_float_handler (&handler
);
31 if (a
== b
) result
= EQ
;
32 else if (a
> b
) result
= LT
;
33 else if (a
< b
) result
= GT
;
35 set_float_handler (0);