diff options
Diffstat (limited to 'gcc/testsuite/gcc.target/arm/fp16-compile-alt-10.c')
-rw-r--r-- | gcc/testsuite/gcc.target/arm/fp16-compile-alt-10.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/arm/fp16-compile-alt-10.c b/gcc/testsuite/gcc.target/arm/fp16-compile-alt-10.c new file mode 100644 index 000000000..2e3d31fdf --- /dev/null +++ b/gcc/testsuite/gcc.target/arm/fp16-compile-alt-10.c @@ -0,0 +1,8 @@ +/* { dg-do compile } */ +/* { dg-options "-mfp16-format=alternative -pedantic -std=gnu99" } */ + +#include <math.h> + +/* NaNs are not representable in the alternative format; we should get a + diagnostic. */ +__fp16 xx = NAN; /* { dg-warning "overflow" } */ |