aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/c23-floatn-6.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.dg/c23-floatn-6.c')
-rw-r--r--gcc/testsuite/gcc.dg/c23-floatn-6.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/c23-floatn-6.c b/gcc/testsuite/gcc.dg/c23-floatn-6.c
new file mode 100644
index 0000000..3480e90
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/c23-floatn-6.c
@@ -0,0 +1,9 @@
+/* { dg-do compile } */
+/* { dg-options "-std=c23 -Wc11-c23-compat" } */
+/* { dg-add-options float128 } */
+/* { dg-require-effective-target float128 } */
+
+_Float128 a /* { dg-warning "ISO C does not support the '_Float128' type before C23" } */
+ = 1.0F128; /* { dg-warning "non-standard suffix on floating constant before C23" } */
+__extension__ _Float128 b
+ = 2.0F128;