aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/c23-float-9.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.dg/c23-float-9.c')
-rw-r--r--gcc/testsuite/gcc.dg/c23-float-9.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/c23-float-9.c b/gcc/testsuite/gcc.dg/c23-float-9.c
new file mode 100644
index 0000000..eeb17d7
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/c23-float-9.c
@@ -0,0 +1,7 @@
+/* Test including <float.h> then <math.h> does not result in errors
+ from duplicate NAN and INFINITY macros. */
+/* { dg-do compile } */
+/* { dg-options "-std=c23 -pedantic-errors" } */
+
+#include <float.h>
+#include <math.h>