1 /* { dg-do compile } */
2 /* { dg-require-effective-target arm_fp16_alternative_ok } */
3 /* { dg-options "-mfp16-format=alternative -pedantic -std=gnu99" } */
4 
5 #include <math.h>
6 
7 /* NaNs are not representable in the alternative format; we should get a
8    diagnostic.  */
9 __fp16 xx = NAN; /* { dg-warning "overflow" } */
10