1 /* Test INFINITY macro. Test when infinities supported. */
3 /* { dg-options "-std=c23 -pedantic-errors" } */
4 /* { dg-add-options ieee } */
5 /* { dg-require-effective-target inff } */
10 #error "INFINITY undefined"
13 volatile float f
= INFINITY
;
15 extern void abort (void);
16 extern void exit (int);
21 (void) _Generic (INFINITY
, float : 0);
22 if (!(INFINITY
> FLT_MAX
))