diff options
Diffstat (limited to 'gcc/testsuite/gcc.target/arm/fp16-compile-none-1.c')
-rw-r--r-- | gcc/testsuite/gcc.target/arm/fp16-compile-none-1.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/arm/fp16-compile-none-1.c b/gcc/testsuite/gcc.target/arm/fp16-compile-none-1.c new file mode 100644 index 000000000..e91250581 --- /dev/null +++ b/gcc/testsuite/gcc.target/arm/fp16-compile-none-1.c @@ -0,0 +1,6 @@ +/* { dg-do compile } */ +/* { dg-options "-mfp16-format=none" } */ + +/* __fp16 type name is not recognized unless you explicitly enable it + by selecting -mfp16-format=ieee or -mfp16-format=alternative. */ +__fp16 xx = 0.0; /* { dg-error "unknown type name" } */ |