aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/c23-float-no-dfp-2.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.dg/c23-float-no-dfp-2.c')
-rw-r--r--gcc/testsuite/gcc.dg/c23-float-no-dfp-2.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/c23-float-no-dfp-2.c b/gcc/testsuite/gcc.dg/c23-float-no-dfp-2.c
new file mode 100644
index 0000000..bfe54d7
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/c23-float-no-dfp-2.c
@@ -0,0 +1,9 @@
+/* Test DFP macros not defined in <float.h> if no DFP support. Test
+ with feature test macros defined. */
+/* { dg-do compile { target { ! dfp } } } */
+/* { dg-options "-std=c23" } */
+
+#define __STDC_WANT_DEC_FP__
+#define __STDC_WANT_IEC_60559_DFP_EXT__
+
+#include "c23-float-no-dfp-1.c"