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