diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/dfp/keywords-pedantic.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/dfp/keywords-pedantic.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/dfp/keywords-pedantic.c b/gcc/testsuite/gcc.dg/dfp/keywords-pedantic.c new file mode 100644 index 000000000..bca51066b --- /dev/null +++ b/gcc/testsuite/gcc.dg/dfp/keywords-pedantic.c @@ -0,0 +1,8 @@ +/* { dg-do compile } */ +/* { dg-options "-pedantic" } */ + +/* Decimal float is a GCC extension. */ + +_Decimal32 x; /* { dg-warning "GCC extension|ISO C" } */ +_Decimal64 y; /* { dg-warning "GCC extension|ISO C" } */ +_Decimal128 z; /* { dg-warning "GCC extension|ISO C" } */ |