aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/c2x-float-no-dfp-2.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.dg/c2x-float-no-dfp-2.c')
-rw-r--r--gcc/testsuite/gcc.dg/c2x-float-no-dfp-2.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/c2x-float-no-dfp-2.c b/gcc/testsuite/gcc.dg/c2x-float-no-dfp-2.c
new file mode 100644
index 00000000000..730ce89c4cc
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/c2x-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=c2x" } */
+
+#define __STDC_WANT_DEC_FP__
+#define __STDC_WANT_IEC_60559_DFP_EXT__
+
+#include "c2x-float-no-dfp-1.c"