summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/c99-math-float-1.c
diff options
context:
space:
mode:
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2005-05-19 07:05:45 +0000
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2005-05-19 07:05:45 +0000
commite849ea70ce30e304c569cc735649e207707b5e2a (patch)
treeb868266a6c9589956b7ebb466b05e348d7f83b8b /gcc/testsuite/gcc.dg/c99-math-float-1.c
parentc62a2234539a6c6429e6943eef62731234c7c565 (diff)
downloadgcc-e849ea70ce30e304c569cc735649e207707b5e2a.tar.gz
fixincludes/
PR target/19933 PR target/21315 * inclhack.def: New fixes solaris_math_[1-9]. * fixincl.x: Regenerate. * tests/base/iso/math_c99.h: New. gcc/testsuite/ * gcc.dg/c99-math.h: New * gcc.dg/c99-math-float-1.c: New test. * gcc.dg/c99-math-double-1.c: Likewise. * gcc.dg/c99-math-long-double-1.c: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@99953 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/c99-math-float-1.c')
-rw-r--r--gcc/testsuite/gcc.dg/c99-math-float-1.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/c99-math-float-1.c b/gcc/testsuite/gcc.dg/c99-math-float-1.c
new file mode 100644
index 00000000000..9dd4e9a0483
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/c99-math-float-1.c
@@ -0,0 +1,18 @@
+/* { dg-do run { target *-*-solaris2.1[0-9]* } } */
+/* { dg-options "-std=c99 -O" } */
+
+#include <math.h>
+#include "c99-math.h"
+
+int main(void)
+{
+ float nan = NAN;
+ float inf = INFINITY;
+ float huge = HUGE_VALF;
+ float norm = __FLT_MIN__;
+ float zero = 0.0f;
+
+ C99_MATH_TESTS (nan, inf, huge, norm, zero)
+
+ return 0;
+}