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" } */
9 extern void set_float_handler (jmp_buf *);
16 compare_float (double a
, double b
) /* { dg-bogus "clobbered" "spurious clobbered warning" } */
25 set_float_handler (0);
29 set_float_handler (&handler
);
30 if (a
== b
) result
= EQ
;
31 else if (a
> b
) result
= LT
;
32 else if (a
< b
) result
= GT
;
34 set_float_handler (0);